mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
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>
This commit is contained in:
parent
0710e610d3
commit
2ef0d23c29
1 changed files with 8 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue