comparedialog - compare curves and special functions

This commit is contained in:
Romolo Manfredini
2015-04-26 11:57:26 +02:00
committed by Romolo Manfredini
parent 27ee3e3ab4
commit 6e0eec364c
5 changed files with 184 additions and 90 deletions
+4 -4
View File
@@ -797,12 +797,12 @@ QString getTimerStr(TimerData & timer)
return result;
}
QString getProtocol(ModelData * g_model)
QString getProtocol(ModuleData & module)
{
QString str = getProtocolStr(g_model->moduleData[0].protocol);
QString str = getProtocolStr(module.protocol);
if (g_model->moduleData[0].protocol == PPM)
str.append(QObject::tr(": %1 Channels, %2usec Delay").arg(g_model->moduleData[0].channelsCount).arg(g_model->moduleData[0].ppmDelay));
if (module.protocol == PPM)
str.append(QObject::tr(": %1 Channels, %2usec Delay, Pulse polarity %3").arg(module.channelsCount).arg(module.ppmDelay).arg(module.polarityToString()));
return str;
}