summaryrefslogtreecommitdiffstats
path: root/core/subsurface-qt/SettingsObjectWrapper.cpp
diff options
context:
space:
mode:
authorGravatar Rick Walsh <rickmwalsh@gmail.com>2016-05-21 19:32:09 +1000
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-05-21 07:03:38 -0700
commit9b29173363861861949814191861fa46e255c349 (patch)
tree9fdb002a18d775a75b7d9264a81f11d7d8a43118 /core/subsurface-qt/SettingsObjectWrapper.cpp
parent67dda48c884b7413e46acde4e890c0fa19640f67 (diff)
downloadsubsurface-9b29173363861861949814191861fa46e255c349.tar.gz
Planner: add best mix EAD preference
Add best mix EAD preference and UI, along with a tooltip describing what it does 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.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/core/subsurface-qt/SettingsObjectWrapper.cpp b/core/subsurface-qt/SettingsObjectWrapper.cpp
index ed305ef28..eeb4c96c2 100644
--- a/core/subsurface-qt/SettingsObjectWrapper.cpp
+++ b/core/subsurface-qt/SettingsObjectWrapper.cpp
@@ -915,6 +915,11 @@ int DivePlannerSettings::decopo2() const
return prefs.decopo2;
}
+int DivePlannerSettings::bestmixead() const
+{
+ return prefs.bestmixead;
+}
+
int DivePlannerSettings::reserveGas() const
{
return prefs.reserve_gas;
@@ -1089,6 +1094,15 @@ void DivePlannerSettings::setDecopo2(int value)
emit decopo2Changed(value);
}
+void DivePlannerSettings::setBestmixead(int value)
+{
+ QSettings s;
+ s.beginGroup(group);
+ s.setValue("bestmixead", value);
+ prefs.bestmixead = value;
+ emit bestmixeadChanged(value);
+}
+
void DivePlannerSettings::setReserveGas(int value)
{
QSettings s;