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>
This commit is contained in:
jan Iversen 2020-01-19 10:06:51 +01:00 committed by Dirk Hohndel
parent 25a5be0fe9
commit 75fe59b0da
2 changed files with 8 additions and 8 deletions

View file

@ -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