diff options
author | jan Iversen <jan@casacondor.com> | 2019-12-24 11:22:48 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-12-26 08:38:40 -0800 |
commit | 8d322218a8addd99c8daf84f507fe0f45d21a7d1 (patch) | |
tree | b7448a9be37a96dd77681ec2123eb746c17efba6 /backend-shared/plannershared.cpp | |
parent | b877dd973cd787464875f0329c6472bf7f508e01 (diff) | |
download | subsurface-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.cpp | 10 |
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(); +} |