Ref T131, allow to obtain settings from UI component

Useful if we want to avoid to duplicate the settings, but access existing ones
This commit is contained in:
Klaus Basan
2018-02-28 23:45:05 +01:00
parent 9827353f32
commit a8f1bb96c7
3 changed files with 14 additions and 0 deletions

View File

@@ -52,6 +52,9 @@ namespace BlackGui
//! Save data
void save();
//! Settings for given simulator
BlackMisc::Simulation::Settings::CSpecializedSimulatorSettings getSimulatorSettings(const BlackMisc::Simulation::CSimulatorInfo &simulator) const { return m_settings.getSpecializedSettings(simulator); }
private:
QScopedPointer<Ui::CSettingsSimulatorBasicsComponent> ui;
BlackMisc::Simulation::Settings::CMultiSimulatorSettings m_settings { this };