summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar jan Iversen <jan@casacondor.com>2019-12-30 19:56:27 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-12-31 07:44:51 +0900
commitd7f87ee93c25a7200c12fd792a0b4975b38f1845 (patch)
treea479fc9fd254e245f7ae57a5a6044618a512b180
parentd83c74606d04d6d632552ee9bdf73556a9ed24c5 (diff)
downloadsubsurface-d7f87ee93c25a7200c12fd792a0b4975b38f1845.tar.gz
mobile-widgets/qml: add spinbox values to planner setup
(planning is excluded, due to not finished UI). Connect all spinboxes with plannerShared. This change allows live testing and compare with the desktop version. Signed-off-by: Jan Iversen <jan@casacondor.com>
-rw-r--r--mobile-widgets/qml/DivePlannerSetup.qml48
1 files changed, 24 insertions, 24 deletions
diff --git a/mobile-widgets/qml/DivePlannerSetup.qml b/mobile-widgets/qml/DivePlannerSetup.qml
index 105ba52ba..c8e192695 100644
--- a/mobile-widgets/qml/DivePlannerSetup.qml
+++ b/mobile-widgets/qml/DivePlannerSetup.qml
@@ -37,12 +37,12 @@ Kirigami.ScrollablePage {
from: 1
to: 99
stepSize: 1
- value: 15
+ value: Planner.ascrate75
textFromValue: function (value, locale) {
return value + qsTr("m/min")
}
onValueModified: {
- console.log("got value: " + value)
+ Planner.ascrate75 = value
}
}
TemplateLabel {
@@ -52,12 +52,12 @@ Kirigami.ScrollablePage {
from: 1
to: 99
stepSize: 1
- value: 15
+ value: Planner.ascrate50
textFromValue: function (value, locale) {
return value + qsTr("m/min")
}
onValueModified: {
- console.log("got value: " + value)
+ Planner.ascrate50 = value
}
}
TemplateLabel {
@@ -67,12 +67,12 @@ Kirigami.ScrollablePage {
from: 1
to: 99
stepSize: 1
- value: 15
+ value: Planner.ascratestops
textFromValue: function (value, locale) {
return value + qsTr("m/min")
}
onValueModified: {
- console.log("got value: " + value)
+ Planner.ascratestops = value
}
}
TemplateLabel {
@@ -82,12 +82,12 @@ Kirigami.ScrollablePage {
from: 1
to: 99
stepSize: 1
- value: 15
+ value: Planner.ascratelast6m
textFromValue: function (value, locale) {
return value + qsTr("m/min")
}
onValueModified: {
- console.log("got value: " + value)
+ Planner.ascratelast6m = value
}
}
TemplateLabel {
@@ -102,12 +102,12 @@ Kirigami.ScrollablePage {
from: 1
to: 99
stepSize: 1
- value: 15
+ value: Planner.descrate
textFromValue: function (value, locale) {
return value + qsTr("m/min")
}
onValueModified: {
- console.log("got value: " + value)
+ Planner.descrate = value
}
}
}
@@ -199,12 +199,12 @@ Kirigami.ScrollablePage {
from: 1
to: 99
stepSize: 1
- value: 20
+ value: Planner.bottomsac
textFromValue: function (value, locale) {
return value + qsTr("l/min")
}
onValueModified: {
- console.log("got value: " + value)
+ Planner.bottomsac = value
}
}
TemplateLabel {
@@ -214,12 +214,12 @@ Kirigami.ScrollablePage {
from: 1
to: 99
stepSize: 1
- value: 17
+ value: Planner.decosac
textFromValue: function (value, locale) {
return value + qsTr("l/min")
}
onValueModified: {
- console.log("got value: " + value)
+ Planner.decosac = value
}
}
TemplateLabel {
@@ -229,12 +229,12 @@ Kirigami.ScrollablePage {
from: 20
to: 99
stepSize: 1
- value: 20
+ value: Planner.sacfactor
textFromValue: function (value, locale) {
return (value / 10).toFixed(1)
}
onValueModified: {
- console.log("got value: " + value)
+ Planner.sacfactor = value
}
}
TemplateLabel {
@@ -244,12 +244,12 @@ Kirigami.ScrollablePage {
from: 1
to: 9
stepSize: 1
- value: 4
+ value: Planner.problemsolvingtime
textFromValue: function (value, locale) {
return value + qsTr("min")
}
onValueModified: {
- console.log("got value: " + value)
+ Planner.problemsolvingtime = value
}
}
TemplateLabel {
@@ -259,12 +259,12 @@ Kirigami.ScrollablePage {
from: 0
to: 200
stepSize: 1
- value: 120
+ value: Planner.bottompo2
textFromValue: function (value, locale) {
return (value / 100).toFixed(2) + "bar"
}
onValueModified: {
- console.log("got value: " + value)
+ Planner.bottompo2 = value
}
}
TemplateLabel {
@@ -274,12 +274,12 @@ Kirigami.ScrollablePage {
from: 0
to: 200
stepSize: 1
- value: 160
+ value: Planner.decopo2
textFromValue: function (value, locale) {
return (value / 100).toFixed(2) + "bar"
}
onValueModified: {
- console.log("got value: " + value)
+ Planner.decopo2 = value
}
}
TemplateLabel {
@@ -289,12 +289,12 @@ Kirigami.ScrollablePage {
from: 1
to: 99
stepSize: 1
- value: 20
+ value: Planner.bestmixend
textFromValue: function (value, locale) {
return value + qsTr("m")
}
onValueModified: {
- console.log("got value: " + value)
+ Planner.bestmixend = value
}
}
TemplateCheckBox {