summaryrefslogtreecommitdiffstats
path: root/backend-shared/plannershared.cpp
diff options
context:
space:
mode:
authorGravatar jan Iversen <jan@casacondor.com>2019-12-24 11:22:48 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-12-26 08:38:40 -0800
commit8d322218a8addd99c8daf84f507fe0f45d21a7d1 (patch)
treeb7448a9be37a96dd77681ec2123eb746c17efba6 /backend-shared/plannershared.cpp
parentb877dd973cd787464875f0329c6472bf7f508e01 (diff)
downloadsubsurface-8d322218a8addd99c8daf84f507fe0f45d21a7d1.tar.gz
plannerShared: add variables that reference qPrefDiveplanner
These are simple pass-through functions (normally optimized away by the compiler), and serve to make a consistent backend interface which have a simpler use especially in QML. Variables: dobailout Signed-off-by: Jan Iversen <jan@casacondor.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'backend-shared/plannershared.cpp')
-rw-r--r--backend-shared/plannershared.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/backend-shared/plannershared.cpp b/backend-shared/plannershared.cpp
index 2420fdedc..9bb8ad315 100644
--- a/backend-shared/plannershared.cpp
+++ b/backend-shared/plannershared.cpp
@@ -113,3 +113,13 @@ void plannerShared::set_vpmb_conservatism(int value)
{
DivePlannerPointsModel::instance()->setVpmbConservatism(value);
}
+
+bool plannerShared::dobailout()
+{
+ return qPrefDivePlanner::dobailout();
+}
+void plannerShared::set_dobailout(bool value)
+{
+ qPrefDivePlanner::set_dobailout(value);
+ DivePlannerPointsModel::instance()->emitDataChanged();
+}