refs #577, make read only checkboxes better readable

(by not disabling them, but using a little trick)
This commit is contained in:
Klaus Basan
2016-02-04 03:24:49 +01:00
parent de27c2af8a
commit 021530f2b5
4 changed files with 34 additions and 5 deletions

View File

@@ -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);

View File

@@ -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>