Little improvement, it remains some like this one ;)
This commit is contained in:
@@ -178,7 +178,8 @@ void ExpoDialog::valuesChanged()
|
|||||||
phtemp >>=1;
|
phtemp >>=1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
}
|
||||||
|
else {
|
||||||
ed->phases=0;
|
ed->phases=0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -317,17 +317,26 @@ ThrottlePage::ThrottlePage(WizardDialog *dlg, QString image, QString title, QStr
|
|||||||
l->addWidget(noMotorRB);
|
l->addWidget(noMotorRB);
|
||||||
l->addWidget(new QLabel(tr("<br>Throttle Channel:")));
|
l->addWidget(new QLabel(tr("<br>Throttle Channel:")));
|
||||||
l->addWidget(throttleCB);
|
l->addWidget(throttleCB);
|
||||||
|
|
||||||
|
connect(motorRB, SIGNAL(toggled(bool)), this, SLOT(onMotorStateChanged(bool)));
|
||||||
}
|
}
|
||||||
|
|
||||||
void ThrottlePage::initializePage(){
|
void ThrottlePage::initializePage()
|
||||||
|
{
|
||||||
populateCB(throttleCB);
|
populateCB(throttleCB);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ThrottlePage::validatePage() {
|
bool ThrottlePage::validatePage()
|
||||||
|
{
|
||||||
releaseChannels();
|
releaseChannels();
|
||||||
return bookChannel(throttleCB->currentText(), THROTTLE, 100 );
|
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)
|
AileronsPage::AileronsPage(WizardDialog *dlg, QString image, QString title, QString text, int nextPage)
|
||||||
: StandardPage(Page_Ailerons, dlg, image, title, text, nextPage)
|
: StandardPage(Page_Ailerons, dlg, image, title, text, nextPage)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -105,14 +105,19 @@ private:
|
|||||||
class ThrottlePage: public StandardPage
|
class ThrottlePage: public StandardPage
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
|
||||||
ThrottlePage(WizardDialog *dlg, QString image, QString title, QString text, int nextPage=-1);
|
public:
|
||||||
void initializePage();
|
ThrottlePage(WizardDialog *dlg, QString image, QString title, QString text, int nextPage=-1);
|
||||||
bool validatePage();
|
void initializePage();
|
||||||
private:
|
bool validatePage();
|
||||||
QRadioButton *motorRB;
|
|
||||||
QRadioButton *noMotorRB;
|
protected slots:
|
||||||
QComboBox *throttleCB;
|
void onMotorStateChanged(bool toggled);
|
||||||
|
|
||||||
|
private:
|
||||||
|
QRadioButton *motorRB;
|
||||||
|
QRadioButton *noMotorRB;
|
||||||
|
QComboBox *throttleCB;
|
||||||
};
|
};
|
||||||
|
|
||||||
class AileronsPage: public StandardPage
|
class AileronsPage: public StandardPage
|
||||||
|
|||||||
Reference in New Issue
Block a user