Fixes #1266 - Companion timer value not in time format

This commit is contained in:
Damjan Adamic
2014-06-13 23:34:01 +02:00
parent e3df420f8e
commit 37ec428efc
5 changed files with 73 additions and 16 deletions
+6
View File
@@ -370,6 +370,11 @@ class RawSource {
return (this->type != other.type) || (this->index != other.index);
}
bool isTimeBased() const
{
return (type==SOURCE_TYPE_TELEMETRY && (index==1 || index==2 || index==3));
}
RawSourceType type;
int index;
const ModelData * model;
@@ -710,6 +715,7 @@ class LogicalSwitchData { // Logical Switches data
int andsw;
void clear() { memset(this, 0, sizeof(LogicalSwitchData)); }
CSFunctionFamily getFunctionFamily();
bool isDeltaFunction();
QString funcToString();
QString toString(const ModelData & model);
};