summaryrefslogtreecommitdiffstats
path: root/backend-shared/plannershared.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'backend-shared/plannershared.cpp')
-rw-r--r--backend-shared/plannershared.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/backend-shared/plannershared.cpp b/backend-shared/plannershared.cpp
index 2093e4c4f..fe4e52443 100644
--- a/backend-shared/plannershared.cpp
+++ b/backend-shared/plannershared.cpp
@@ -3,6 +3,7 @@
#include "core/settings/qPrefDivePlanner.h"
#include "core/settings/qPrefTechnicalDetails.h"
#include "qt-models/diveplannermodel.h"
+#include "qt-models/cylindermodel.h"
plannerShared *plannerShared::instance()
{
@@ -210,3 +211,14 @@ void plannerShared::set_sacfactor(double value)
// NO conversion, this is done in the planner model.
DivePlannerPointsModel::instance()->setSacFactor(value);
}
+
+bool plannerShared::o2narcotic()
+{
+ return qPrefDivePlanner::o2narcotic();
+}
+void plannerShared::set_o2narcotic(bool value)
+{
+ qPrefDivePlanner::set_o2narcotic(value);
+ DivePlannerPointsModel::instance()->emitDataChanged();
+ CylindersModel::instance()->updateBestMixes();
+}