mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-20 10:54:14 +01:00
LP-478 Remove Rssi channel from reversable input at wizard end - Allow 5 items in one line (heli)
This commit is contained in:
parent
a071de9cc9
commit
0ed090f8ac
@ -839,12 +839,12 @@ void ConfigInputWidget::wizardSetUpStep(enum wizardSteps step)
|
||||
extraWidgets.clear();
|
||||
for (int index = 0; index < manualSettingsObj->getField("ChannelMax")->getElementNames().length(); index++) {
|
||||
QString name = manualSettingsObj->getField("ChannelMax")->getElementNames().at(index);
|
||||
if (!name.contains("Access") && !name.contains("Flight") &&
|
||||
if (!name.contains("Access") && !name.contains("Flight") && !name.contains("Rssi") &&
|
||||
(!name.contains("Collective") || transmitterType == heli)) {
|
||||
QCheckBox *cb = new QCheckBox(name, this);
|
||||
// Make sure checked status matches current one
|
||||
cb->setChecked(manualSettingsData.ChannelMax[index] < manualSettingsData.ChannelMin[index]);
|
||||
wizardUi->checkBoxesLayout->addWidget(cb, extraWidgets.size() / 4, extraWidgets.size() % 4);
|
||||
wizardUi->checkBoxesLayout->addWidget(cb, extraWidgets.size() / 5, extraWidgets.size() % 5);
|
||||
extraWidgets.append(cb);
|
||||
connect(cb, SIGNAL(toggled(bool)), this, SLOT(invertControls()));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user