diff options
author | jan Iversen <jan@casacondor.com> | 2020-01-19 10:06:51 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-01-20 09:49:36 -0800 |
commit | 75fe59b0da4d15c2e63c070f6f561805af86e5d9 (patch) | |
tree | 2b99fa4125939efe1091871f2959144361ba9a9f /mobile-widgets/qml/DivePlannerSetup.qml | |
parent | 25a5be0fe901910c632cd422e4fa556b2c4c83ec (diff) | |
download | subsurface-75fe59b0da4d15c2e63c070f6f561805af86e5d9.tar.gz |
mobile-widgets/qml: use strongly typed units in QML
Change Settings and DivePlannerSetup to use the strongly typed enums
Signed-off-by: jan Iversen <jan@casacondor.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qml/DivePlannerSetup.qml')
-rw-r--r-- | mobile-widgets/qml/DivePlannerSetup.qml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mobile-widgets/qml/DivePlannerSetup.qml b/mobile-widgets/qml/DivePlannerSetup.qml index d16d02778..7eddd507f 100644 --- a/mobile-widgets/qml/DivePlannerSetup.qml +++ b/mobile-widgets/qml/DivePlannerSetup.qml @@ -10,9 +10,9 @@ import org.kde.kirigami 2.4 as Kirigami Kirigami.ScrollablePage { title: qsTr("Dive planner setup") - property string speedUnit: (PrefUnits.length === "meters") ? qsTr("m/min") : qsTr("ft/min") + property string speedUnit: (Backend.length === Enums.METERS) ? qsTr("m/min") : qsTr("ft/min") Connections { - target: PrefUnits + target: Backend onLengthChanged: { spinAscrate75.value = Planner.ascrate75 spinAscrate50.value = Planner.ascrate50 |