diff options
author | jan Iversen <jan@casacondor.com> | 2020-01-19 18:49:42 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-01-20 15:47:26 -0800 |
commit | 6db7e6d278365936ca866b3c87bcbef8a9afd13c (patch) | |
tree | 5cc6e50e8fb09ddd00715bd31370f05ff5658224 | |
parent | 699665ce9e4c1bdb9a4e1027fc3d1533c1929054 (diff) | |
download | subsurface-6db7e6d278365936ca866b3c87bcbef8a9afd13c.tar.gz |
mobile-widgets/qml: use Backend instead of Planner
Use Backend instead of Planner for ascent/descent variables.
Signed-off-by: jan Iversen <jan@casacondor.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | mobile-widgets/qml/DivePlannerSetup.qml | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/mobile-widgets/qml/DivePlannerSetup.qml b/mobile-widgets/qml/DivePlannerSetup.qml index 7eddd507f..aa715f03a 100644 --- a/mobile-widgets/qml/DivePlannerSetup.qml +++ b/mobile-widgets/qml/DivePlannerSetup.qml @@ -14,11 +14,11 @@ Kirigami.ScrollablePage { Connections { target: Backend onLengthChanged: { - spinAscrate75.value = Planner.ascrate75 - spinAscrate50.value = Planner.ascrate50 - spinAscratestops.value = Planner.ascratestops - spinAscratelast6m.value = Planner.ascratelast6m - spinDescrate.value = Planner.descrate + spinAscrate75.value = Backend.ascrate75 + spinAscrate50.value = Backend.ascrate50 + spinAscratestops.value = Backend.ascratestops + spinAscratelast6m.value = Backend.ascratelast6m + spinDescrate.value = Backend.descrate } } Column { @@ -49,12 +49,12 @@ Kirigami.ScrollablePage { from: 1 to: 99 stepSize: 1 - value: Planner.ascrate75 + value: Backend.ascrate75 textFromValue: function (value, locale) { return value + speedUnit } onValueModified: { - Planner.ascrate75 = value + Backend.ascrate75 = value } } TemplateLabel { @@ -65,12 +65,12 @@ Kirigami.ScrollablePage { from: 1 to: 99 stepSize: 1 - value: Planner.ascrate50 + value: Backend.ascrate50 textFromValue: function (value, locale) { return value + speedUnit } onValueModified: { - Planner.ascrate50 = value + Backend.ascrate50 = value } } TemplateLabel { @@ -81,12 +81,12 @@ Kirigami.ScrollablePage { from: 1 to: 99 stepSize: 1 - value: Planner.ascratestops + value: Backend.ascratestops textFromValue: function (value, locale) { return value + speedUnit } onValueModified: { - Planner.ascratestops = value + Backend.ascratestops = value } } TemplateLabel { @@ -97,12 +97,12 @@ Kirigami.ScrollablePage { from: 1 to: 99 stepSize: 1 - value: Planner.ascratelast6m + value: Backend.ascratelast6m textFromValue: function (value, locale) { return value + speedUnit } onValueModified: { - Planner.ascratelast6m = value + Backend.ascratelast6m = value } } TemplateLabel { @@ -118,12 +118,12 @@ Kirigami.ScrollablePage { from: 1 to: 99 stepSize: 1 - value: Planner.descrate + value: Backend.descrate textFromValue: function (value, locale) { return value + speedUnit } onValueModified: { - Planner.descrate = value + Backend.descrate = value } } } |