mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-26 18:55:38 +08:00
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:
@@ -34,7 +34,7 @@ namespace BlackGui
|
||||
explicit COwnModelSetForm(QWidget *parent = nullptr);
|
||||
|
||||
//! Destructor
|
||||
~COwnModelSetForm();
|
||||
virtual ~COwnModelSetForm();
|
||||
|
||||
//! Reload data
|
||||
void reloadData();
|
||||
@@ -90,17 +90,16 @@ namespace BlackGui
|
||||
//! Simulator changed
|
||||
void simulatorChanged(const BlackMisc::Simulation::CSimulatorInfo &simulator);
|
||||
|
||||
private slots:
|
||||
private:
|
||||
//! Changed preferences
|
||||
void ps_preferencesChanged();
|
||||
void onPreferencesChanged();
|
||||
|
||||
//! Simulator changed
|
||||
void ps_simulatorChanged(const BlackMisc::Simulation::CSimulatorInfo &simulator);
|
||||
void onSimulatorChanged(const BlackMisc::Simulation::CSimulatorInfo &simulator);
|
||||
|
||||
//! Display distributors based on checkboxes
|
||||
void ps_changeDistributorDisplay();
|
||||
void changeDistributorDisplay();
|
||||
|
||||
private:
|
||||
//! Init the options which distributors are displayed
|
||||
void initDistributorDisplay();
|
||||
|
||||
@@ -109,7 +108,7 @@ namespace BlackGui
|
||||
|
||||
QScopedPointer<Ui::COwnModelSetForm> ui;
|
||||
BlackMisc::Simulation::CSimulatorInfo m_simulator;
|
||||
BlackMisc::CSetting<BlackMisc::Simulation::Settings::TDistributorListPreferences> m_distributorPreferences { this, &COwnModelSetForm::ps_preferencesChanged };
|
||||
BlackMisc::CSetting<BlackMisc::Simulation::Settings::TDistributorListPreferences> m_distributorPreferences { this, &COwnModelSetForm::onPreferencesChanged };
|
||||
};
|
||||
} // ns
|
||||
} // ns
|
||||
|
||||
Reference in New Issue
Block a user