GVAR popups only for Taranis...
This commit is contained in:
@@ -158,11 +158,13 @@ FlightMode::FlightMode(QWidget * parent, ModelData & model, int phaseIdx, Genera
|
|||||||
gvLayout->addWidget(gvValues[i], i, col++, 1, 1);
|
gvLayout->addWidget(gvValues[i], i, col++, 1, 1);
|
||||||
|
|
||||||
// Popups
|
// Popups
|
||||||
gvPopups[i] = new QCheckBox(ui->gvGB);
|
if (IS_TARANIS(GetEepromInterface()->getBoard())) {
|
||||||
gvPopups[i]->setProperty("index", i);
|
gvPopups[i] = new QCheckBox(ui->gvGB);
|
||||||
gvPopups[i]->setText(tr("Popup enabled"));
|
gvPopups[i]->setProperty("index", i);
|
||||||
connect(gvPopups[i], SIGNAL(toggled(bool)), this, SLOT(phaseGVPopupToggled(bool)));
|
gvPopups[i]->setText(tr("Popup enabled"));
|
||||||
gvLayout->addWidget(gvPopups[i], i, col++, 1, 1);
|
connect(gvPopups[i], SIGNAL(toggled(bool)), this, SLOT(phaseGVPopupToggled(bool)));
|
||||||
|
gvLayout->addWidget(gvPopups[i], i, col++, 1, 1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@@ -209,8 +211,10 @@ void FlightMode::update()
|
|||||||
idx = phasegvar->gvars[i];
|
idx = phasegvar->gvars[i];
|
||||||
gvValues[i]->setDisabled(true);
|
gvValues[i]->setDisabled(true);
|
||||||
}
|
}
|
||||||
gvValues[i]->setValue(phasegvar->gvars[i]);
|
if (IS_TARANIS(GetEepromInterface()->getBoard())) {
|
||||||
gvPopups[i]->setChecked(model.gvars_popups[i]);
|
gvValues[i]->setValue(phasegvar->gvars[i]);
|
||||||
|
gvPopups[i]->setChecked(model.gvars_popups[i]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int i=0; i<reCount; i++) {
|
for (int i=0; i<reCount; i++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user