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:
Klaus Basan
2018-10-24 23:16:47 +02:00
parent e727b29753
commit b1942282f5
5 changed files with 664 additions and 482 deletions

View File

@@ -28,7 +28,7 @@ namespace BlackGui
this->resetToDefaultValues();
ui->cb_Override->setChecked(true);
ui->le_TextCodec->setCompleter(new QCompleter(textCodecNames(true, true), this));
connect(ui->cb_Override, &QCheckBox::toggled, this, &CFsdSetupForm::enabledToggled);
connect(ui->cb_Override, &QCheckBox::toggled, this, &CFsdSetupForm::enabledToggled, Qt::QueuedConnection);
connect(ui->pb_SetDefaults, &QPushButton::clicked, this, &CFsdSetupForm::resetToDefaultValues);
}
@@ -90,6 +90,11 @@ namespace BlackGui
CGuiUtility::checkBoxReadOnly(ui->cb_FastPositionSend, readonly);
CGuiUtility::checkBoxReadOnly(ui->cb_GndFlagReceive, readonly);
CGuiUtility::checkBoxReadOnly(ui->cb_GndFlagSend, readonly);
if (readonly && ui->cb_Override->isChecked())
{
ui->cb_Override->setChecked(false);
}
this->forceStyleSheetUpdate();
}