mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-03-25 05:29:16 -04:00
Also disable the other controls under Settings/Advanced if they cannot be used.
This commit is contained in:
parent
b991bdfd13
commit
9d857e4768
@ -594,6 +594,7 @@ private:
|
||||
Q_SLOT void on_rbRTTY_Roundup_clicked (bool);
|
||||
Q_SLOT void on_rbARRL_Digi_clicked (bool);
|
||||
Q_SLOT void on_cbSuperFox_clicked (bool);
|
||||
Q_SLOT void on_cbContestName_clicked (bool);
|
||||
void error_during_hamlib_download (QString const& reason);
|
||||
void after_hamlib_downloaded();
|
||||
void display_file_information();
|
||||
@ -3199,6 +3200,11 @@ void Configuration::impl::on_cbSuperFox_clicked (bool)
|
||||
check_visibility ();
|
||||
}
|
||||
|
||||
void Configuration::impl::on_cbContestName_clicked (bool)
|
||||
{
|
||||
check_visibility ();
|
||||
}
|
||||
|
||||
void Configuration::impl::check_visibility ()
|
||||
{
|
||||
if (ui_->rbFox->isChecked() and ui_->cbSuperFox->isChecked()) {
|
||||
@ -3208,6 +3214,27 @@ void Configuration::impl::check_visibility ()
|
||||
ui_->sfkey_label->setEnabled (false);
|
||||
ui_->FoxKey->setEnabled (false);
|
||||
}
|
||||
if (ui_->rbField_Day->isChecked()) {
|
||||
ui_->labFD->setEnabled (true);
|
||||
ui_->Field_Day_Exchange->setEnabled (true);
|
||||
} else {
|
||||
ui_->labFD->setEnabled (false);
|
||||
ui_->Field_Day_Exchange->setEnabled (false);
|
||||
}
|
||||
if (ui_->rbRTTY_Roundup->isChecked()) {
|
||||
ui_->labRTTY->setEnabled (true);
|
||||
ui_->RTTY_Exchange->setEnabled (true);
|
||||
} else {
|
||||
ui_->labRTTY->setEnabled (false);
|
||||
ui_->RTTY_Exchange->setEnabled (false);
|
||||
}
|
||||
if (ui_->cbContestName->isChecked() and !ui_->rbFox->isChecked() and !ui_->rbHound->isChecked()) {
|
||||
ui_->labCN->setEnabled (true);
|
||||
ui_->Contest_Name->setEnabled (true);
|
||||
} else {
|
||||
ui_->labCN->setEnabled (false);
|
||||
ui_->Contest_Name->setEnabled (false);
|
||||
}
|
||||
}
|
||||
|
||||
void Configuration::impl::on_Field_Day_Exchange_textEdited (QString const& exchange)
|
||||
|
Loading…
Reference in New Issue
Block a user