summaryrefslogtreecommitdiffstats
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.cpp3
2 files changed, 6 insertions, 3 deletions
diff --git a/mobile-widgets/qml/DivePlannerSetup.qml b/mobile-widgets/qml/DivePlannerSetup.qml
index 2c04d4695..a0c4a3176 100644
--- a/mobile-widgets/qml/DivePlannerSetup.qml
+++ b/mobile-widgets/qml/DivePlannerSetup.qml
@@ -261,15 +261,15 @@ Kirigami.ScrollablePage {
text: qsTr("SAC factor")
}
TemplateSpinBox {
- from: 20
+ from: 10
to: 99
stepSize: 1
- value: Planner.sacfactor
+ value: Backend.sacfactor
textFromValue: function (value, locale) {
return (value / 10).toFixed(1)
}
onValueModified: {
- Planner.sacfactor = value
+ Backend.sacfactor = value
}
}
TemplateLabel {
diff --git a/mobile-widgets/qmlinterface.cpp b/mobile-widgets/qmlinterface.cpp
index 99dc54f2f..21ab50494 100644
--- a/mobile-widgets/qmlinterface.cpp
+++ b/mobile-widgets/qmlinterface.cpp
@@ -69,6 +69,9 @@ void QMLInterface::setup(QQmlContext *ct)
instance(), &QMLInterface::bottomsacChanged);
connect(qPrefDivePlanner::instance(), &qPrefDivePlanner::decosacChanged,
instance(), &QMLInterface::decosacChanged);
+ connect(qPrefDivePlanner::instance(), &qPrefDivePlanner::sacfactorChanged,
+ instance(), &QMLInterface::sacfactorChanged);
+
connect(qPrefDivePlanner::instance(), &qPrefDivePlanner::display_runtimeChanged,
instance(), &QMLInterface::display_runtimeChanged);
connect(qPrefDivePlanner::instance(), &qPrefDivePlanner::display_durationChanged,