diff options
author | Marco Martin <notmart@gmail.com> | 2016-03-08 21:26:54 +0100 |
---|---|---|
committer | Marco Martin <notmart@gmail.com> | 2016-03-08 21:26:54 +0100 |
commit | c780cfd7ce483c5e3e870c9c92c06a4f1995cbed (patch) | |
tree | 80e1e3ae9d2c1342f2bfba1397637452f98efc28 /qt-mobile/qml/Preferences.qml | |
parent | c6c3967dd99f198131f3f3e170a6d20d0dc77deb (diff) | |
download | subsurface-c780cfd7ce483c5e3e870c9c92c06a4f1995cbed.tar.gz |
port to Kirigami imports and new api
first quick and dirty port of the imports to Kirigami 1.0
(using system installed for now) adapt to api changes and
try out some of the proposed ui changes from the HIG
Signed-off-by: Marco Martin <notmart@gmail.com>
Diffstat (limited to 'qt-mobile/qml/Preferences.qml')
-rw-r--r-- | qt-mobile/qml/Preferences.qml | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/qt-mobile/qml/Preferences.qml b/qt-mobile/qml/Preferences.qml index 9607b63ee..3ec96d198 100644 --- a/qt-mobile/qml/Preferences.qml +++ b/qt-mobile/qml/Preferences.qml @@ -3,11 +3,12 @@ import QtQuick.Controls 1.2 import QtQuick.Window 2.2 import QtQuick.Dialogs 1.2 import QtQuick.Layouts 1.1 -import org.kde.plasma.mobilecomponents 0.2 as MobileComponents +import org.kde.kirigami 1.0 as Kirigami import org.subsurfacedivelog.mobile 1.0 -MobileComponents.Page { +Kirigami.Page { + title: "Preferences" mainAction: Action { text: "Save" iconName: "document-save" @@ -24,27 +25,27 @@ MobileComponents.Page { signal accept columns: 2 - width: parent.width - MobileComponents.Units.gridUnit + width: parent.width - Kirigami.Units.gridUnit anchors { fill: parent - margins: MobileComponents.Units.gridUnit / 2 + margins: Kirigami.Units.gridUnit / 2 } - MobileComponents.Heading { + Kirigami.Heading { text: "Preferences" - Layout.bottomMargin: MobileComponents.Units.largeSpacing / 2 + Layout.bottomMargin: Kirigami.Units.largeSpacing / 2 Layout.columnSpan: 2 } - MobileComponents.Heading { + Kirigami.Heading { text: "Subsurface GPS data webservice" level: 3 - Layout.topMargin: MobileComponents.Units.largeSpacing - Layout.bottomMargin: MobileComponents.Units.largeSpacing / 2 + Layout.topMargin: Kirigami.Units.largeSpacing + Layout.bottomMargin: Kirigami.Units.largeSpacing / 2 Layout.columnSpan: 2 } - MobileComponents.Label { + Kirigami.Label { text: "Distance threshold (meters)" Layout.alignment: Qt.AlignRight } @@ -55,7 +56,7 @@ MobileComponents.Page { Layout.fillWidth: true } - MobileComponents.Label { + Kirigami.Label { text: "Time threshold (minutes)" Layout.alignment: Qt.AlignRight } |