summaryrefslogtreecommitdiffstats
path: root/mobile-widgets
diff options
context:
space:
mode:
authorGravatar jan Iversen <jan@casacondor.com>2020-01-08 10:02:41 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-01-24 20:23:37 -0800
commit2ef0d23c290bcf2e7f8a9ddd52665c3dc8290dad (patch)
treea78debc878b68c8ed125f99dd78b8f60b4ec7122 /mobile-widgets
parent0710e610d3dfa97088824c5a43b0b7623f04c63f (diff)
downloadsubsurface-2ef0d23c290bcf2e7f8a9ddd52665c3dc8290dad.tar.gz
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 <jan@casacondor.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets')
-rw-r--r--mobile-widgets/qml/DivePlannerSetup.qml8
1 files changed, 8 insertions, 0 deletions
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 {