summaryrefslogtreecommitdiffstats
path: root/mobile-widgets
diff options
context:
space:
mode:
authorGravatar jan Iversen <jan@casacondor.com>2020-01-27 22:20:27 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-02-03 17:30:06 -0800
commitf16dc7255610939faaf1eb789a06c8853387ed82 (patch)
treed29c64b541623cbde52a2f08ee2f8249403a4461 /mobile-widgets
parent3aa43f3ea5a64afdda934fb9a8ff52deecd71db6 (diff)
downloadsubsurface-f16dc7255610939faaf1eb789a06c8853387ed82.tar.gz
mobile-widgets/qml: use new templates in converted pages
Use the TemplatePage and TemplateButton in the converted pages. In order to avoid a bigger search/replace all other pages are left untouched (for now). Signed-off-by: jan Iversen <jan@casacondor.com>
Diffstat (limited to 'mobile-widgets')
-rw-r--r--mobile-widgets/qml/DivePlannerSetup.qml3
-rw-r--r--mobile-widgets/qml/Settings.qml3
2 files changed, 2 insertions, 4 deletions
diff --git a/mobile-widgets/qml/DivePlannerSetup.qml b/mobile-widgets/qml/DivePlannerSetup.qml
index 6c065606f..4c014aaf5 100644
--- a/mobile-widgets/qml/DivePlannerSetup.qml
+++ b/mobile-widgets/qml/DivePlannerSetup.qml
@@ -7,9 +7,8 @@ import QtQuick.Dialogs 1.3
import org.subsurfacedivelog.mobile 1.0
import org.kde.kirigami 2.4 as Kirigami
-Kirigami.ScrollablePage {
+TemplatePage {
title: qsTr("Dive planner setup")
- background: Rectangle { color: subsurfaceTheme.backgroundColor }
property string speedUnit: (Backend.length === Enums.METERS) ? qsTr(" m/min") : qsTr(" ft/min")
property string volumeUnit: (Backend.volume === Enums.LITER) ? qsTr(" l/min") : qsTr(" cuft/min")
diff --git a/mobile-widgets/qml/Settings.qml b/mobile-widgets/qml/Settings.qml
index af64b58be..33b515070 100644
--- a/mobile-widgets/qml/Settings.qml
+++ b/mobile-widgets/qml/Settings.qml
@@ -5,14 +5,13 @@ import QtQuick.Controls 2.12
import org.kde.kirigami 2.4 as Kirigami
import org.subsurfacedivelog.mobile 1.0
-Kirigami.ScrollablePage {
+TemplatePage {
objectName: "Settings"
id: settingsPage
property alias defaultCylinderModel: defaultCylinderBox.model
property alias defaultCylinderIndex: defaultCylinderBox.currentIndex
title: qsTr("Settings")
- background: Rectangle { color: subsurfaceTheme.backgroundColor }
property real gridWidth: settingsPage.width - Kirigami.Units.gridUnit
property var describe: [qsTr("Undefined"),