mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-08 01:56:17 +00:00
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>
This commit is contained in:
parent
699665ce9e
commit
6db7e6d278
1 changed files with 15 additions and 15 deletions
|
@ -14,11 +14,11 @@ Kirigami.ScrollablePage {
|
||||||
Connections {
|
Connections {
|
||||||
target: Backend
|
target: Backend
|
||||||
onLengthChanged: {
|
onLengthChanged: {
|
||||||
spinAscrate75.value = Planner.ascrate75
|
spinAscrate75.value = Backend.ascrate75
|
||||||
spinAscrate50.value = Planner.ascrate50
|
spinAscrate50.value = Backend.ascrate50
|
||||||
spinAscratestops.value = Planner.ascratestops
|
spinAscratestops.value = Backend.ascratestops
|
||||||
spinAscratelast6m.value = Planner.ascratelast6m
|
spinAscratelast6m.value = Backend.ascratelast6m
|
||||||
spinDescrate.value = Planner.descrate
|
spinDescrate.value = Backend.descrate
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Column {
|
Column {
|
||||||
|
@ -49,12 +49,12 @@ Kirigami.ScrollablePage {
|
||||||
from: 1
|
from: 1
|
||||||
to: 99
|
to: 99
|
||||||
stepSize: 1
|
stepSize: 1
|
||||||
value: Planner.ascrate75
|
value: Backend.ascrate75
|
||||||
textFromValue: function (value, locale) {
|
textFromValue: function (value, locale) {
|
||||||
return value + speedUnit
|
return value + speedUnit
|
||||||
}
|
}
|
||||||
onValueModified: {
|
onValueModified: {
|
||||||
Planner.ascrate75 = value
|
Backend.ascrate75 = value
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
TemplateLabel {
|
TemplateLabel {
|
||||||
|
@ -65,12 +65,12 @@ Kirigami.ScrollablePage {
|
||||||
from: 1
|
from: 1
|
||||||
to: 99
|
to: 99
|
||||||
stepSize: 1
|
stepSize: 1
|
||||||
value: Planner.ascrate50
|
value: Backend.ascrate50
|
||||||
textFromValue: function (value, locale) {
|
textFromValue: function (value, locale) {
|
||||||
return value + speedUnit
|
return value + speedUnit
|
||||||
}
|
}
|
||||||
onValueModified: {
|
onValueModified: {
|
||||||
Planner.ascrate50 = value
|
Backend.ascrate50 = value
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
TemplateLabel {
|
TemplateLabel {
|
||||||
|
@ -81,12 +81,12 @@ Kirigami.ScrollablePage {
|
||||||
from: 1
|
from: 1
|
||||||
to: 99
|
to: 99
|
||||||
stepSize: 1
|
stepSize: 1
|
||||||
value: Planner.ascratestops
|
value: Backend.ascratestops
|
||||||
textFromValue: function (value, locale) {
|
textFromValue: function (value, locale) {
|
||||||
return value + speedUnit
|
return value + speedUnit
|
||||||
}
|
}
|
||||||
onValueModified: {
|
onValueModified: {
|
||||||
Planner.ascratestops = value
|
Backend.ascratestops = value
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
TemplateLabel {
|
TemplateLabel {
|
||||||
|
@ -97,12 +97,12 @@ Kirigami.ScrollablePage {
|
||||||
from: 1
|
from: 1
|
||||||
to: 99
|
to: 99
|
||||||
stepSize: 1
|
stepSize: 1
|
||||||
value: Planner.ascratelast6m
|
value: Backend.ascratelast6m
|
||||||
textFromValue: function (value, locale) {
|
textFromValue: function (value, locale) {
|
||||||
return value + speedUnit
|
return value + speedUnit
|
||||||
}
|
}
|
||||||
onValueModified: {
|
onValueModified: {
|
||||||
Planner.ascratelast6m = value
|
Backend.ascratelast6m = value
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
TemplateLabel {
|
TemplateLabel {
|
||||||
|
@ -118,12 +118,12 @@ Kirigami.ScrollablePage {
|
||||||
from: 1
|
from: 1
|
||||||
to: 99
|
to: 99
|
||||||
stepSize: 1
|
stepSize: 1
|
||||||
value: Planner.descrate
|
value: Backend.descrate
|
||||||
textFromValue: function (value, locale) {
|
textFromValue: function (value, locale) {
|
||||||
return value + speedUnit
|
return value + speedUnit
|
||||||
}
|
}
|
||||||
onValueModified: {
|
onValueModified: {
|
||||||
Planner.descrate = value
|
Backend.descrate = value
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue