summaryrefslogtreecommitdiffstats
path: root/core/subsurface-qt/SettingsObjectWrapper.cpp
diff options
context:
space:
mode:
authorGravatar Rick Walsh <rickmwalsh@gmail.com>2016-09-02 07:52:17 +1000
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-09-04 07:29:42 -0700
commit7b3665827a3fdf6717be5419b41641d8e2d95c93 (patch)
treee7aa2c13f56ac42136b0a3c95e0e622effc3dabf /core/subsurface-qt/SettingsObjectWrapper.cpp
parentd8a6b917a5ec2d3be40908864d74faed8b0e47b2 (diff)
downloadsubsurface-7b3665827a3fdf6717be5419b41641d8e2d95c93.tar.gz
Settings fixup: gflow and gfhigh are int
With the recent setting cleanup, gradient factors were set to bool, so were saved as 1/1, rather than say 50/80. This commit fixes that. Signed-off-by: Rick Walsh <rickmwalsh@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/subsurface-qt/SettingsObjectWrapper.cpp')
-rw-r--r--core/subsurface-qt/SettingsObjectWrapper.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/subsurface-qt/SettingsObjectWrapper.cpp b/core/subsurface-qt/SettingsObjectWrapper.cpp
index a329e0452..8c8762b65 100644
--- a/core/subsurface-qt/SettingsObjectWrapper.cpp
+++ b/core/subsurface-qt/SettingsObjectWrapper.cpp
@@ -301,12 +301,12 @@ bool TechnicalDetailsSettings::calcndltts() const
return prefs.calcndltts;
}
-bool TechnicalDetailsSettings::gflow() const
+int TechnicalDetailsSettings::gflow() const
{
return prefs.gflow;
}
-bool TechnicalDetailsSettings::gfhigh() const
+int TechnicalDetailsSettings::gfhigh() const
{
return prefs.gfhigh;
}
@@ -496,7 +496,7 @@ void TechnicalDetailsSettings::setCalcndltts(bool value)
emit calcndlttsChanged(value);
}
-void TechnicalDetailsSettings::setGflow(bool value)
+void TechnicalDetailsSettings::setGflow(int value)
{
if (value == prefs.gflow)
return;
@@ -509,7 +509,7 @@ void TechnicalDetailsSettings::setGflow(bool value)
emit gflowChanged(value);
}
-void TechnicalDetailsSettings::setGfhigh(bool value)
+void TechnicalDetailsSettings::setGfhigh(int value)
{
if (value == prefs.gfhigh)
return;