aboutsummaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml/DivePlannerSetup.qml
diff options
context:
space:
mode:
authorGravatar jan Iversen <jan@casacondor.com>2020-01-21 17:43:18 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-01-25 17:13:20 -0800
commit1e3879d87d90e34712571867c5c2a2bea3196a4b (patch)
tree138a39de0a341f9f077c84e2e4f1b00555953a82 /mobile-widgets/qml/DivePlannerSetup.qml
parent86fd49f2d79f3e199de5261a80e01b34541b96f6 (diff)
downloadsubsurface-1e3879d87d90e34712571867c5c2a2bea3196a4b.tar.gz
diveplanner: add last gas variables to QMLInterface
Add bottompo2, decopo2 and bestmixend to QMLInterface Bestmixend in gas options changing with meter/feet Signed-off-by: jan Iversen <jan@casacondor.com>
Diffstat (limited to 'mobile-widgets/qml/DivePlannerSetup.qml')
-rw-r--r--mobile-widgets/qml/DivePlannerSetup.qml22
1 files changed, 12 insertions, 10 deletions
diff --git a/mobile-widgets/qml/DivePlannerSetup.qml b/mobile-widgets/qml/DivePlannerSetup.qml
index a0c4a3176..f3d5fa71d 100644
--- a/mobile-widgets/qml/DivePlannerSetup.qml
+++ b/mobile-widgets/qml/DivePlannerSetup.qml
@@ -20,6 +20,7 @@ Kirigami.ScrollablePage {
spinAscratestops.value = Backend.ascratestops
spinAscratelast6m.value = Backend.ascratelast6m
spinDescrate.value = Backend.descrate
+ spinBestmixend.value = Backend.bestmixend
}
onVolumeChanged: {
spinBottomsac.value = Backend.bottomsac
@@ -292,14 +293,14 @@ Kirigami.ScrollablePage {
}
TemplateSpinBox {
from: 0
- to: 200
+ to: 250
stepSize: 1
- value: Planner.bottompo2
+ value: Backend.bottompo2
textFromValue: function (value, locale) {
return (value / 100).toFixed(2) + "bar"
}
onValueModified: {
- Planner.bottompo2 = value
+ Backend.bottompo2 = value
}
}
TemplateLabel {
@@ -307,36 +308,37 @@ Kirigami.ScrollablePage {
}
TemplateSpinBox {
from: 0
- to: 200
+ to: 250
stepSize: 1
- value: Planner.decopo2
+ value: Backend.decopo2
textFromValue: function (value, locale) {
return (value / 100).toFixed(2) + "bar"
}
onValueModified: {
- Planner.decopo2 = value
+ Backend.decopo2 = value
}
}
TemplateLabel {
text: qsTr("Best mix END")
}
TemplateSpinBox {
+ id: spinBestmixend
from: 1
to: 99
stepSize: 1
- value: Planner.bestmixend
+ value: Backend.bestmixend
textFromValue: function (value, locale) {
return value + speedUnit
}
onValueModified: {
- Planner.bestmixend = value
+ Backend.bestmixend = value
}
}
TemplateCheckBox {
text: qsTr("O2 narcotic")
- checked: Planner.o2narcotic
+ checked: Backend.o2narcotic
onClicked: {
- Planner.o2narcotic = checked
+ Backend.o2narcotic = checked
}
}
}