Ref T225, force stylesheet in CForm base class and used by all forms

* Allows to use stylesheet attributes like [readonly]
* changing to "readonly" applies correct stylesheet
This commit is contained in:
Klaus Basan
2018-01-18 20:08:16 +01:00
parent 0916c90038
commit eaf0095454
19 changed files with 42 additions and 21 deletions

View File

@@ -19,7 +19,6 @@
#include <QJsonDocument>
#include <QJsonParseError>
using namespace BlackGui;
using namespace BlackMisc;
using namespace BlackMisc::Aviation;
@@ -46,6 +45,7 @@ namespace BlackGui
{
CGuiUtility::childrenSetEnabled<QPushButton>(this, !readonly);
CGuiUtility::checkBoxesReadOnly(this, readonly);
this->forceStyleSheetUpdate();
}
void CAircraftPartsForm::setSelectOnly()