mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-21 04:45:31 +08:00
refs #577, make read only checkboxes better readable
(by not disabling them, but using a little trick)
This commit is contained in:
@@ -132,9 +132,9 @@ namespace BlackGui
|
||||
this->ui->le_Family->setReadOnly(readOnly);
|
||||
this->ui->le_Iata->setReadOnly(readOnly);
|
||||
|
||||
this->ui->cb_Legacy->setCheckable(!readOnly);
|
||||
this->ui->cb_Military->setCheckable(!readOnly);
|
||||
this->ui->cb_RealWorld->setCheckable(!readOnly);
|
||||
CGuiUtility::checkBoxReadOnly(this->ui->cb_Legacy, readOnly);
|
||||
CGuiUtility::checkBoxReadOnly(this->ui->cb_Military, readOnly);
|
||||
CGuiUtility::checkBoxReadOnly(this->ui->cb_RealWorld, readOnly);
|
||||
|
||||
this->ui->cb_Wtc->setEnabled(!readOnly);
|
||||
this->ui->cb_Rank->setEnabled(!readOnly);
|
||||
|
||||
@@ -198,6 +198,9 @@
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="cb_RealWorld">
|
||||
<property name="toolTip">
|
||||
<string>Real world aircraft</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Real</string>
|
||||
</property>
|
||||
@@ -205,6 +208,9 @@
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="cb_Legacy">
|
||||
<property name="toolTip">
|
||||
<string>Legacy aircraft, e.g. Concord, ME109</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Legacy</string>
|
||||
</property>
|
||||
@@ -213,7 +219,7 @@
|
||||
<item>
|
||||
<widget class="QCheckBox" name="cb_Military">
|
||||
<property name="toolTip">
|
||||
<string>Military</string>
|
||||
<string>Military aircraft</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Mil.</string>
|
||||
|
||||
Reference in New Issue
Block a user