diff options
author | willemferguson <willemferguson@zoology.up.ac.za> | 2019-12-09 20:58:20 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-12-25 02:57:42 +0900 |
commit | b6c3cdb20cbcb1654c83d555d278476f55d3d103 (patch) | |
tree | 67c566c81e286391f804660f7cd0017ada058902 /desktop-widgets/preferences/preferences_graph.cpp | |
parent | b24caa4e2db42d300e3806ca3d13ce72202a24d8 (diff) | |
download | subsurface-b6c3cdb20cbcb1654c83d555d278476f55d3d103.tar.gz |
Preferences UI: add dive log tab
This adds a tab for dive log - related preferences.
A suitable test programs is still required.
Signed-off-by: willemferguson <willemferguson@zoology.up.ac.za>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'desktop-widgets/preferences/preferences_graph.cpp')
-rw-r--r-- | desktop-widgets/preferences/preferences_graph.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/desktop-widgets/preferences/preferences_graph.cpp b/desktop-widgets/preferences/preferences_graph.cpp index cdead91e0..b7fd5b4b9 100644 --- a/desktop-widgets/preferences/preferences_graph.cpp +++ b/desktop-widgets/preferences/preferences_graph.cpp @@ -9,7 +9,7 @@ #include "qt-models/models.h" #include "core/deco.h" -PreferencesGraph::PreferencesGraph() : AbstractPreferencesWidget(tr("Profile"), QIcon(":graph-icon"), 5) +PreferencesGraph::PreferencesGraph() : AbstractPreferencesWidget(tr("Tech setup"), QIcon(":graph-icon"), 7) { ui = new Ui::PreferencesGraph(); ui->setupUi(this); @@ -49,7 +49,6 @@ void PreferencesGraph::refreshSettings() ui->psro2rate->setValue(prefs.o2consumption / 1000.0); ui->pscrfactor->setValue(lrint(1000.0 / prefs.pscr_ratio)); - ui->show_average_depth->setChecked(prefs.show_average_depth); ui->show_icd->setChecked(prefs.show_icd); } @@ -75,7 +74,6 @@ void PreferencesGraph::syncSettings() qPrefTechnicalDetails::set_show_ccr_setpoint(ui->show_ccr_setpoint->isChecked()); qPrefTechnicalDetails::set_show_ccr_sensors(ui->show_ccr_sensors->isChecked()); qPrefTechnicalDetails::set_show_scr_ocpo2(ui->show_scr_ocpo2->isChecked()); - qPrefTechnicalDetails::set_show_average_depth(ui->show_average_depth->isChecked()); qPrefTechnicalDetails::set_show_icd(ui->show_icd->isChecked()); qPrefTechnicalDetails::set_display_deco_mode(ui->vpmb->isChecked() ? VPMB : BUEHLMANN); } |