From 691025fa2440d76e1b208a3ecd280a4aec646890 Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Sun, 12 Aug 2018 21:58:25 +0200 Subject: core: activate qPrefGeneral remove General from SettingsObjectWrapper and reference qPrefGeneral update files using SettingsObjectWrapper/General to use qPrefGeneral this activated qPrefGeneral and removed the similar class from SettingsObjectWrapper. Signed-off-by: Jan Iversen --- desktop-widgets/preferences/preferences_graph.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'desktop-widgets/preferences/preferences_graph.cpp') diff --git a/desktop-widgets/preferences/preferences_graph.cpp b/desktop-widgets/preferences/preferences_graph.cpp index a25f818c7..cbb2b2c39 100644 --- a/desktop-widgets/preferences/preferences_graph.cpp +++ b/desktop-widgets/preferences/preferences_graph.cpp @@ -52,11 +52,11 @@ void PreferencesGraph::refreshSettings() void PreferencesGraph::syncSettings() { - auto general = SettingsObjectWrapper::instance()->general_settings; - general->setDefaultSetPoint(lrint(ui->defaultSetpoint->value() * 1000.0)); - general->setO2Consumption(lrint(ui->psro2rate->value() *1000.0)); - general->setPscrRatio(lrint(1000.0 / ui->pscrfactor->value())); - general->setAutoRecalculateThumbnails(ui->auto_recalculate_thumbnails->isChecked()); + auto general = qPrefGeneral::instance(); + general->set_defaultsetpoint(lrint(ui->defaultSetpoint->value() * 1000.0)); + general->set_o2consumption(lrint(ui->psro2rate->value() *1000.0)); + general->set_pscr_ratio(lrint(1000.0 / ui->pscrfactor->value())); + general->set_auto_recalculate_thumbnails(ui->auto_recalculate_thumbnails->isChecked()); auto pp_gas = qPrefPartialPressureGas::instance(); pp_gas->set_phe_threshold(ui->pheThreshold->value()); -- cgit v1.2.3-70-g09d2