summaryrefslogtreecommitdiffstats
path: root/desktop-widgets
diff options
context:
space:
mode:
authorGravatar Robert C. Helling <helling@atdotde.de>2018-02-05 15:58:25 +0100
committerGravatar Jan Mulder <jlmulder@xs4all.nl>2018-02-10 10:26:34 +0100
commit920aa613c9a422d3f232b355524db7f5a7f0342f (patch)
tree9d6d68a4e77dff06b078adc99b85987022deaf16 /desktop-widgets
parentf9f1630d5c040344b7f8dbaf02348ec5f2b4c7dd (diff)
downloadsubsurface-920aa613c9a422d3f232b355524db7f5a7f0342f.tar.gz
Add a preference to turn on ICD warnings
Signed-off-by: Robert C. Helling <helling@atdotde.de>
Diffstat (limited to 'desktop-widgets')
-rw-r--r--desktop-widgets/preferences/preferences_graph.cpp2
-rw-r--r--desktop-widgets/preferences/preferences_graph.ui7
2 files changed, 9 insertions, 0 deletions
diff --git a/desktop-widgets/preferences/preferences_graph.cpp b/desktop-widgets/preferences/preferences_graph.cpp
index 20e0918ab..ccc9aee65 100644
--- a/desktop-widgets/preferences/preferences_graph.cpp
+++ b/desktop-widgets/preferences/preferences_graph.cpp
@@ -46,6 +46,7 @@ void PreferencesGraph::refreshSettings()
ui->display_unused_tanks->setChecked(prefs.display_unused_tanks);
ui->show_average_depth->setChecked(prefs.show_average_depth);
+ ui->show_icd->setChecked(prefs.show_icd);
}
void PreferencesGraph::syncSettings()
@@ -72,6 +73,7 @@ void PreferencesGraph::syncSettings()
tech->setShowCCRSensors(ui->show_ccr_sensors->isChecked());
tech->setDisplayUnusedTanks(ui->display_unused_tanks->isChecked());
tech->setShowAverageDepth(ui->show_average_depth->isChecked());
+ tech->setShowIcd(ui->show_icd->isChecked());
tech->setDecoMode(ui->vpmb->isChecked() ? VPMB : BUEHLMANN);
}
diff --git a/desktop-widgets/preferences/preferences_graph.ui b/desktop-widgets/preferences/preferences_graph.ui
index 2823c3c69..72d1010b3 100644
--- a/desktop-widgets/preferences/preferences_graph.ui
+++ b/desktop-widgets/preferences/preferences_graph.ui
@@ -354,6 +354,13 @@
</property>
</widget>
</item>
+ <item row="2" column="0">
+ <widget class="QCheckBox" name="show_icd">
+ <property name="text">
+ <string>Warn for isobaric counter diffusion</string>
+ </property>
+ </widget>
+ </item>
</layout>
</widget>
</item>