mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-23 05:45:35 +08:00
Reorder login page
* 2 sections: login/logoff status * select server, then details (not in same tab widget which is misleading) * call readonly on subforms
This commit is contained in:
@@ -28,7 +28,7 @@ namespace BlackGui
|
||||
QIntValidator *v = new QIntValidator(0, 65535, ui->le_VatsimUdpPort);
|
||||
ui->le_VatsimUdpPort->setValidator(v);
|
||||
this->resetToDefaultValues();
|
||||
connect(ui->cb_Override, &QCheckBox::toggled, this, &CVoiceSetupForm::enabledToggled);
|
||||
connect(ui->cb_Override, &QCheckBox::toggled, this, &CVoiceSetupForm::enabledToggled, Qt::QueuedConnection);
|
||||
connect(ui->pb_SetDefaults, &QPushButton::clicked, this, &CVoiceSetupForm::resetToDefaultValues);
|
||||
}
|
||||
|
||||
@@ -72,6 +72,10 @@ namespace BlackGui
|
||||
{
|
||||
ui->pb_SetDefaults->setEnabled(!readonly);
|
||||
ui->le_VatsimUdpPort->setReadOnly(readonly);
|
||||
if (readonly && ui->cb_Override->isChecked())
|
||||
{
|
||||
ui->cb_Override->setChecked(false);
|
||||
}
|
||||
this->forceStyleSheetUpdate();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user