Added Wizard option for flight timer.

This commit is contained in:
Kjell Kernen
2014-05-12 16:27:52 +02:00
parent 22697f9491
commit 9716fb04d2
7 changed files with 597 additions and 333 deletions
+3
View File
@@ -840,10 +840,12 @@ OptionsPage::OptionsPage(WizardDialog *dlg, QString image, QString title, QStrin
{
throttleCutRB = new QCheckBox(tr("Throttle Cut"));
throttleTimerRB = new QCheckBox(tr("Throttle Timer"));
flightTimerRB = new QCheckBox(tr("Flight Timer"));
QLayout *l = layout();
l->addWidget(throttleCutRB);
l->addWidget(throttleTimerRB);
l->addWidget(flightTimerRB);
}
void OptionsPage::initializePage(){
@@ -853,6 +855,7 @@ void OptionsPage::initializePage(){
bool OptionsPage::validatePage(){
wizDlg->mix.options[THROTTLE_CUT_OPTION] = throttleCutRB->isChecked();
wizDlg->mix.options[THROTTLE_TIMER_OPTION] = throttleTimerRB->isChecked();
wizDlg->mix.options[FLIGHT_TIMER_OPTION] = flightTimerRB->isChecked();
return true;
}