aboutsummaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qmlinterface.cpp
diff options
context:
space:
mode:
authorGravatar jan Iversen <jan@casacondor.com>2020-01-20 21:19:12 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-01-24 20:23:15 -0800
commit0710e610d3dfa97088824c5a43b0b7623f04c63f (patch)
tree5bf62862fc844d73c4a40b3d94af9eed66409d80 /mobile-widgets/qmlinterface.cpp
parent663fe7f78b23db1ca2badf2889498444f31c7630 (diff)
downloadsubsurface-0710e610d3dfa97088824c5a43b0b7623f04c63f.tar.gz
mobile-widgets: add simple part of remaining planner variables
Add simple variables, where getter uses prefs. and setters call directly to set function (without using plannerShared). rename last_stop --> last_stop6m Signed-off-by: jan Iversen <jan@casacondor.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qmlinterface.cpp')
-rw-r--r--mobile-widgets/qmlinterface.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/mobile-widgets/qmlinterface.cpp b/mobile-widgets/qmlinterface.cpp
index 277db13ef..6cf280f55 100644
--- a/mobile-widgets/qmlinterface.cpp
+++ b/mobile-widgets/qmlinterface.cpp
@@ -48,6 +48,21 @@ void QMLInterface::setup(QQmlContext *ct)
connect(qPrefDivePlanner::instance(), &qPrefDivePlanner::descrateChanged,
instance(), &QMLInterface::descrateChanged);
+ connect(qPrefDivePlanner::instance(), &qPrefDivePlanner::safetystopChanged,
+ instance(), &QMLInterface::safetystopChanged);
+ connect(qPrefTechnicalDetails::instance(), &qPrefTechnicalDetails::gflowChanged,
+ instance(), &QMLInterface::gflowChanged);
+ connect(qPrefTechnicalDetails::instance(), &qPrefTechnicalDetails::gfhighChanged,
+ instance(), &QMLInterface::gfhighChanged);
+ connect(qPrefTechnicalDetails::instance(), &qPrefTechnicalDetails::vpmb_conservatismChanged,
+ instance(), &QMLInterface::vpmb_conservatismChanged);
+ connect(qPrefDivePlanner::instance(), &qPrefDivePlanner::drop_stone_modeChanged,
+ instance(), &QMLInterface::drop_stone_modeChanged);
+ connect(qPrefDivePlanner::instance(), &qPrefDivePlanner::last_stopChanged,
+ instance(), &QMLInterface::last_stop6mChanged);
+ connect(qPrefDivePlanner::instance(), &qPrefDivePlanner::switch_at_req_stopChanged,
+ instance(), &QMLInterface::switch_at_req_stopChanged);
+
connect(qPrefDivePlanner::instance(), &qPrefDivePlanner::display_runtimeChanged,
instance(), &QMLInterface::display_runtimeChanged);
connect(qPrefDivePlanner::instance(), &qPrefDivePlanner::display_durationChanged,