Consistency with radio

This commit is contained in:
elecpower
2021-03-04 08:22:45 +11:00
parent 3ba689d989
commit 227b225dea
2 changed files with 3 additions and 3 deletions
@@ -94,7 +94,7 @@ QString CustomFunctionData::funcToString(const AssignFunc func, const ModelData
else if (func == FuncPlayValue) else if (func == FuncPlayValue)
return tr("Play Value"); return tr("Play Value");
else if (func == FuncPlayScript) else if (func == FuncPlayScript)
return tr("Play Script"); return tr("Lua Script");
else if (func == FuncLogs) else if (func == FuncLogs)
return tr("SD Logs"); return tr("SD Logs");
else if (func == FuncVolume) else if (func == FuncVolume)
@@ -354,7 +354,7 @@ QString CustomFunctionData::gvarAdjustModeToString(const int value)
case FUNC_ADJUST_GVAR_GVAR: case FUNC_ADJUST_GVAR_GVAR:
return tr("Global Variable"); return tr("Global Variable");
case FUNC_ADJUST_GVAR_INCDEC: case FUNC_ADJUST_GVAR_INCDEC:
return tr("Increment"); return tr("Inc/Decrement");
default: default:
return QString(CPN_STR_UNKNOWN_ITEM); return QString(CPN_STR_UNKNOWN_ITEM);
} }
+1 -1
View File
@@ -201,7 +201,7 @@ CustomFunctionsPanel::CustomFunctionsPanel(QWidget * parent, ModelData * model,
fswtchEnable[i] = new QCheckBox(this); fswtchEnable[i] = new QCheckBox(this);
fswtchEnable[i]->setProperty("index", i); fswtchEnable[i]->setProperty("index", i);
fswtchEnable[i]->setText(tr("ON")); fswtchEnable[i]->setText(tr("Enable"));
fswtchEnable[i]->setFixedWidth(200); fswtchEnable[i]->setFixedWidth(200);
repeatLayout->addWidget(fswtchEnable[i], i + 1); repeatLayout->addWidget(fswtchEnable[i], i + 1);
connect(fswtchEnable[i], SIGNAL(stateChanged(int)), this, SLOT(customFunctionEdited())); connect(fswtchEnable[i], SIGNAL(stateChanged(int)), this, SLOT(customFunctionEdited()));