diff options
Diffstat (limited to 'core/subsurface-qt/SettingsObjectWrapper.cpp')
-rw-r--r-- | core/subsurface-qt/SettingsObjectWrapper.cpp | 14 |
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; |