diff options
author | Jan Mulder <jlmulder@xs4all.nl> | 2017-03-24 19:11:31 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-03-28 11:17:03 -0700 |
commit | bb31c77597f28976eb4784318fa7b01a28f3942b (patch) | |
tree | fc3c7c04dc0dcf89d51554289dd5537f9ff5c95e /desktop-widgets/preferences/preferences_graph.cpp | |
parent | 1d0281c9234e44ce4804f8c7f376cd9d4ee68f54 (diff) | |
download | subsurface-bb31c77597f28976eb4784318fa7b01a28f3942b.tar.gz |
minimal pO2 threshold: split max threshold into min and max
Nothing really special here. Just a split of the only p02 max threshold into
a min threshold and max threshold, and the adaptation of the UI. Change of
translatable strings included.
ref: https://github.com/Subsurface-divelog/subsurface/issues/259
Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
Diffstat (limited to 'desktop-widgets/preferences/preferences_graph.cpp')
-rw-r--r-- | desktop-widgets/preferences/preferences_graph.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/desktop-widgets/preferences/preferences_graph.cpp b/desktop-widgets/preferences/preferences_graph.cpp index 03f09166c..b4fd81fd1 100644 --- a/desktop-widgets/preferences/preferences_graph.cpp +++ b/desktop-widgets/preferences/preferences_graph.cpp @@ -20,7 +20,8 @@ PreferencesGraph::~PreferencesGraph() void PreferencesGraph::refreshSettings() { ui->pheThreshold->setValue(prefs.pp_graphs.phe_threshold); - ui->po2Threshold->setValue(prefs.pp_graphs.po2_threshold); + ui->po2ThresholdMax->setValue(prefs.pp_graphs.po2_threshold_max); + ui->po2ThresholdMin->setValue(prefs.pp_graphs.po2_threshold_min); ui->pn2Threshold->setValue(prefs.pp_graphs.pn2_threshold); ui->maxpo2->setValue(prefs.modpO2); ui->red_ceiling->setChecked(prefs.redceiling); @@ -56,7 +57,8 @@ void PreferencesGraph::syncSettings() auto pp_gas = SettingsObjectWrapper::instance()->pp_gas; pp_gas->setPheThreshold(ui->pheThreshold->value()); - pp_gas->setPo2Threshold(ui->po2Threshold->value()); + pp_gas->setPo2ThresholdMax(ui->po2ThresholdMax->value()); + pp_gas->setPo2ThresholdMin(ui->po2ThresholdMin->value()); pp_gas->setPn2Threshold(ui->pn2Threshold->value()); auto tech = SettingsObjectWrapper::instance()->techDetails; |