diff options
Diffstat (limited to 'desktop-widgets')
-rw-r--r-- | desktop-widgets/preferences/preferences_graph.cpp | 2 | ||||
-rw-r--r-- | desktop-widgets/preferences/preferences_graph.ui | 7 |
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> |