1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-26 17:55:19 +03:00

Little improvement, it remains some like this one ;)

This commit is contained in:
bsongis 2014-03-13 16:09:21 +01:00
parent 383475a6ed
commit 8a38c6a13b
3 changed files with 26 additions and 11 deletions

View file

@ -317,17 +317,26 @@ ThrottlePage::ThrottlePage(WizardDialog *dlg, QString image, QString title, QStr
l->addWidget(noMotorRB);
l->addWidget(new QLabel(tr("<br>Throttle Channel:")));
l->addWidget(throttleCB);
connect(motorRB, SIGNAL(toggled(bool)), this, SLOT(onMotorStateChanged(bool)));
}
void ThrottlePage::initializePage(){
void ThrottlePage::initializePage()
{
populateCB(throttleCB);
}
bool ThrottlePage::validatePage() {
bool ThrottlePage::validatePage()
{
releaseChannels();
return bookChannel(throttleCB->currentText(), THROTTLE, 100 );
}
void ThrottlePage::onMotorStateChanged(bool toggled)
{
throttleCB->setEnabled(toggled);
}
AileronsPage::AileronsPage(WizardDialog *dlg, QString image, QString title, QString text, int nextPage)
: StandardPage(Page_Ailerons, dlg, image, title, text, nextPage)
{