summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/preferences
diff options
context:
space:
mode:
authorGravatar jan Iversen <jani@apache.org>2018-08-11 19:55:41 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-08-14 07:12:41 -0700
commit9d005888fb4578b894414323981a30d7c8f98d79 (patch)
treecf531a6e5ea9975a686a5fbf7ed807460efcac32 /desktop-widgets/preferences
parent881395318c6960acc59ed1dbb4eb3de5de473cfd (diff)
downloadsubsurface-9d005888fb4578b894414323981a30d7c8f98d79.tar.gz
core: activate qPrefPartialPressureGas
remove PartialPressureGas from SettingsObjectWrapper and reference qPrefPartialPressureGas update files using SettingsObjectWrapper/PartialPressureGas to use qPrefPartialPressureGas this activated qPrefPartialPressureGas and removed the similar class from SettingsObjectWrapper. Signed-off-by: Jan Iversen <jani@apache.org>
Diffstat (limited to 'desktop-widgets/preferences')
-rw-r--r--desktop-widgets/preferences/preferences_graph.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/desktop-widgets/preferences/preferences_graph.cpp b/desktop-widgets/preferences/preferences_graph.cpp
index 6ddd7250a..a25f818c7 100644
--- a/desktop-widgets/preferences/preferences_graph.cpp
+++ b/desktop-widgets/preferences/preferences_graph.cpp
@@ -58,11 +58,11 @@ void PreferencesGraph::syncSettings()
general->setPscrRatio(lrint(1000.0 / ui->pscrfactor->value()));
general->setAutoRecalculateThumbnails(ui->auto_recalculate_thumbnails->isChecked());
- auto pp_gas = SettingsObjectWrapper::instance()->pp_gas;
- pp_gas->setPheThreshold(ui->pheThreshold->value());
- pp_gas->setPo2ThresholdMax(ui->po2ThresholdMax->value());
- pp_gas->setPo2ThresholdMin(ui->po2ThresholdMin->value());
- pp_gas->setPn2Threshold(ui->pn2Threshold->value());
+ auto pp_gas = qPrefPartialPressureGas::instance();
+ pp_gas->set_phe_threshold(ui->pheThreshold->value());
+ pp_gas->set_po2_threshold_max(ui->po2ThresholdMax->value());
+ pp_gas->set_po2_threshold_min(ui->po2ThresholdMin->value());
+ pp_gas->set_pn2_threshold(ui->pn2Threshold->value());
auto tech = qPrefTechnicalDetails::instance();
tech->set_modpO2(ui->maxpo2->value());