diff options
Diffstat (limited to 'core/subsurface-qt')
-rw-r--r-- | core/subsurface-qt/SettingsObjectWrapper.cpp | 23 | ||||
-rw-r--r-- | core/subsurface-qt/SettingsObjectWrapper.h | 3 |
2 files changed, 3 insertions, 23 deletions
diff --git a/core/subsurface-qt/SettingsObjectWrapper.cpp b/core/subsurface-qt/SettingsObjectWrapper.cpp index 720a887d6..4fcb96580 100644 --- a/core/subsurface-qt/SettingsObjectWrapper.cpp +++ b/core/subsurface-qt/SettingsObjectWrapper.cpp @@ -396,11 +396,6 @@ bool TechnicalDetailsSettings::showSac() const return prefs.show_sac; } -bool TechnicalDetailsSettings::gfLowAtMaxDepth() const -{ - return prefs.gf_low_at_maxdepth; -} - bool TechnicalDetailsSettings::displayUnusedTanks() const { return prefs.display_unused_tanks; @@ -561,7 +556,7 @@ void TechnicalDetailsSettings::setGflow(int value) s.beginGroup(group); s.setValue("gflow", value); prefs.gflow = value; - set_gf(prefs.gflow, prefs.gfhigh, prefs.gf_low_at_maxdepth); + set_gf(prefs.gflow, prefs.gfhigh); emit gflowChanged(value); } @@ -574,7 +569,7 @@ void TechnicalDetailsSettings::setGfhigh(int value) s.beginGroup(group); s.setValue("gfhigh", value); prefs.gfhigh = value; - set_gf(prefs.gflow, prefs.gfhigh, prefs.gf_low_at_maxdepth); + set_gf(prefs.gflow, prefs.gfhigh); emit gfhighChanged(value); } @@ -684,18 +679,6 @@ void TechnicalDetailsSettings::setShowSac(bool value) emit showSacChanged(value); } -void TechnicalDetailsSettings::setGfLowAtMaxDepth(bool value) -{ - if (value == prefs.gf_low_at_maxdepth) - return; - QSettings s; - s.beginGroup(group); - s.setValue("gf_low_at_maxdepth", value); - prefs.gf_low_at_maxdepth = value; - set_gf(prefs.gflow, prefs.gfhigh, prefs.gf_low_at_maxdepth); - emit gfLowAtMaxDepthChanged(value); -} - void TechnicalDetailsSettings::setDisplayUnusedTanks(bool value) { if (value == prefs.display_unused_tanks) @@ -2244,7 +2227,7 @@ void SettingsObjectWrapper::load() GET_BOOL("show_ccr_setpoint",show_ccr_setpoint); GET_BOOL("show_ccr_sensors",show_ccr_sensors); GET_BOOL("zoomed_plot", zoomed_plot); - set_gf(prefs.gflow, prefs.gfhigh, prefs.gf_low_at_maxdepth); + set_gf(prefs.gflow, prefs.gfhigh); set_vpmb_conservatism(prefs.vpmb_conservatism); GET_BOOL("show_sac", show_sac); GET_BOOL("display_unused_tanks", display_unused_tanks); diff --git a/core/subsurface-qt/SettingsObjectWrapper.h b/core/subsurface-qt/SettingsObjectWrapper.h index 824d1023d..bbc762e28 100644 --- a/core/subsurface-qt/SettingsObjectWrapper.h +++ b/core/subsurface-qt/SettingsObjectWrapper.h @@ -133,7 +133,6 @@ class TechnicalDetailsSettings : public QObject { Q_PROPERTY(bool show_ccr_sensors READ showCCRSensors WRITE setShowCCRSensors NOTIFY showCCRSensorsChanged) Q_PROPERTY(bool zoomed_plot READ zoomedPlot WRITE setZoomedPlot NOTIFY zoomedPlotChanged) Q_PROPERTY(bool show_sac READ showSac WRITE setShowSac NOTIFY showSacChanged) - Q_PROPERTY(bool gf_low_at_maxdepth READ gfLowAtMaxDepth WRITE setGfLowAtMaxDepth NOTIFY gfLowAtMaxDepthChanged) Q_PROPERTY(bool display_unused_tanks READ displayUnusedTanks WRITE setDisplayUnusedTanks NOTIFY displayUnusedTanksChanged) Q_PROPERTY(bool show_average_depth READ showAverageDepth WRITE setShowAverageDepth NOTIFY showAverageDepthChanged) Q_PROPERTY(bool show_pictures_in_profile READ showPicturesInProfile WRITE setShowPicturesInProfile NOTIFY showPicturesInProfileChanged) @@ -163,7 +162,6 @@ public: bool showCCRSensors() const; bool zoomedPlot() const; bool showSac() const; - bool gfLowAtMaxDepth() const; bool displayUnusedTanks() const; bool showAverageDepth() const; bool showPicturesInProfile() const; @@ -191,7 +189,6 @@ public slots: void setShowCCRSensors(bool value); void setZoomedPlot(bool value); void setShowSac(bool value); - void setGfLowAtMaxDepth(bool value); void setDisplayUnusedTanks(bool value); void setShowAverageDepth(bool value); void setShowPicturesInProfile(bool value); |