aboutsummaryrefslogtreecommitdiffstats
path: root/mobile-widgets
diff options
context:
space:
mode:
Diffstat (limited to 'mobile-widgets')
-rw-r--r--mobile-widgets/qml/DivePlannerSetup.qml6
-rw-r--r--mobile-widgets/qmlinterface.cpp2
2 files changed, 5 insertions, 3 deletions
diff --git a/mobile-widgets/qml/DivePlannerSetup.qml b/mobile-widgets/qml/DivePlannerSetup.qml
index 58bbb1ac9..294752de3 100644
--- a/mobile-widgets/qml/DivePlannerSetup.qml
+++ b/mobile-widgets/qml/DivePlannerSetup.qml
@@ -275,12 +275,12 @@ Kirigami.ScrollablePage {
from: 1
to: 9
stepSize: 1
- value: Planner.problemsolvingtime
+ value: Backend.problemsolvingtime
textFromValue: function (value, locale) {
- return value + qsTr("min")
+ return value + qsTr(" min")
}
onValueModified: {
- Planner.problemsolvingtime = value
+ Backend.problemsolvingtime = value
}
}
TemplateLabel {
diff --git a/mobile-widgets/qmlinterface.cpp b/mobile-widgets/qmlinterface.cpp
index 6cf280f55..04fd0b6d9 100644
--- a/mobile-widgets/qmlinterface.cpp
+++ b/mobile-widgets/qmlinterface.cpp
@@ -63,6 +63,8 @@ void QMLInterface::setup(QQmlContext *ct)
connect(qPrefDivePlanner::instance(), &qPrefDivePlanner::switch_at_req_stopChanged,
instance(), &QMLInterface::switch_at_req_stopChanged);
+ connect(qPrefDivePlanner::instance(), &qPrefDivePlanner::problemsolvingtimeChanged,
+ instance(), &QMLInterface::problemsolvingtimeChanged);
connect(qPrefDivePlanner::instance(), &qPrefDivePlanner::display_runtimeChanged,
instance(), &QMLInterface::display_runtimeChanged);
connect(qPrefDivePlanner::instance(), &qPrefDivePlanner::display_durationChanged,