summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qmlinterface.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mobile-widgets/qmlinterface.cpp')
-rw-r--r--mobile-widgets/qmlinterface.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/mobile-widgets/qmlinterface.cpp b/mobile-widgets/qmlinterface.cpp
index e4f2dd6e5..e422a5856 100644
--- a/mobile-widgets/qmlinterface.cpp
+++ b/mobile-widgets/qmlinterface.cpp
@@ -36,4 +36,15 @@ void QMLInterface::setup(QQmlContext *ct)
[=] (int value) { emit instance()->volumeChanged(VOLUME(value)); });
connect(qPrefUnits::instance(), &qPrefUnits::weightChanged,
[=] (int value) { emit instance()->weightChanged(WEIGHT(value)); });
+
+ connect(qPrefDivePlanner::instance(), &qPrefDivePlanner::ascratelast6mChanged,
+ instance(), &QMLInterface::ascratelast6mChanged);
+ connect(qPrefDivePlanner::instance(), &qPrefDivePlanner::ascratestopsChanged,
+ instance(), &QMLInterface::ascratestopsChanged);
+ connect(qPrefDivePlanner::instance(), &qPrefDivePlanner::ascrate50Changed,
+ instance(), &QMLInterface::ascrate50Changed);
+ connect(qPrefDivePlanner::instance(), &qPrefDivePlanner::ascrate75Changed,
+ instance(), &QMLInterface::ascrate75Changed);
+ connect(qPrefDivePlanner::instance(), &qPrefDivePlanner::descrateChanged,
+ instance(), &QMLInterface::descrateChanged);
}