mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
3aa43f3ea5
commit
f16dc72556
2 changed files with 2 additions and 4 deletions
|
@ -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")
|
||||
|
|
|
@ -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"),
|
||||
|
|
Loading…
Add table
Reference in a new issue