From 2ef0d23c290bcf2e7f8a9ddd52665c3dc8290dad Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Wed, 8 Jan 2020 10:02:41 +0100 Subject: mobile-widgets/qml: Add drop_stone to rates Drop_stone_mode, when set, affect the descent rate, so place it alongside the descent rate. Signed-off-by: jan Iversen Signed-off-by: Dirk Hohndel --- mobile-widgets/qml/DivePlannerSetup.qml | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'mobile-widgets') diff --git a/mobile-widgets/qml/DivePlannerSetup.qml b/mobile-widgets/qml/DivePlannerSetup.qml index 870444275..abf5de363 100644 --- a/mobile-widgets/qml/DivePlannerSetup.qml +++ b/mobile-widgets/qml/DivePlannerSetup.qml @@ -119,6 +119,7 @@ Kirigami.ScrollablePage { to: 99 stepSize: 1 value: Backend.descrate + enabled: !Backend.drop_stone_mode textFromValue: function (value, locale) { return value + speedUnit } @@ -126,6 +127,13 @@ Kirigami.ScrollablePage { Backend.descrate = value } } + TemplateCheckBox { + text: qsTr("Drop to first depth") + checked: Backend.drop_stone_mode + onClicked: { + Backend.drop_stone_mode = checked + } + } } } TemplateSection { -- cgit v1.2.3-70-g09d2