summaryrefslogtreecommitdiffstats
path: root/qt-mobile/qml/Preferences.qml
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-02-10 15:11:04 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-02-10 20:59:34 -0800
commit6829d1008666926d935f62236fce7f680c41a90f (patch)
tree99dbfc223ce2f9362aa87a362a88d472fd2e1e2b /qt-mobile/qml/Preferences.qml
parentab36a3dad11da7f1d40f26412cef1d54a7852eac (diff)
downloadsubsurface-6829d1008666926d935f62236fce7f680c41a90f.tar.gz
Indentation fix after the last commit
For the ThemeTest we could simply drop the item, for the GPS preferences and the DowbloadFromDiveComputer page everything got indented by one level. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-mobile/qml/Preferences.qml')
-rw-r--r--qt-mobile/qml/Preferences.qml110
1 files changed, 55 insertions, 55 deletions
diff --git a/qt-mobile/qml/Preferences.qml b/qt-mobile/qml/Preferences.qml
index 3a092f348..ff1fbdf27 100644
--- a/qt-mobile/qml/Preferences.qml
+++ b/qt-mobile/qml/Preferences.qml
@@ -7,72 +7,72 @@ import org.kde.plasma.mobilecomponents 0.2 as MobileComponents
import org.subsurfacedivelog.mobile 1.0
MobileComponents.Page {
-GridLayout {
+ GridLayout {
- signal accept
+ signal accept
- columns: 2
- width: parent.width - MobileComponents.Units.gridUnit
- anchors {
- fill: parent
- margins: MobileComponents.Units.gridUnit / 2
- }
+ columns: 2
+ width: parent.width - MobileComponents.Units.gridUnit
+ anchors {
+ fill: parent
+ margins: MobileComponents.Units.gridUnit / 2
+ }
- MobileComponents.Heading {
- text: "Preferences"
- Layout.bottomMargin: MobileComponents.Units.largeSpacing / 2
- Layout.columnSpan: 2
- }
+ MobileComponents.Heading {
+ text: "Preferences"
+ Layout.bottomMargin: MobileComponents.Units.largeSpacing / 2
+ Layout.columnSpan: 2
+ }
- MobileComponents.Heading {
- text: "Subsurface GPS data webservice"
- level: 3
- Layout.topMargin: MobileComponents.Units.largeSpacing
- Layout.bottomMargin: MobileComponents.Units.largeSpacing / 2
- Layout.columnSpan: 2
- }
+ MobileComponents.Heading {
+ text: "Subsurface GPS data webservice"
+ level: 3
+ Layout.topMargin: MobileComponents.Units.largeSpacing
+ Layout.bottomMargin: MobileComponents.Units.largeSpacing / 2
+ Layout.columnSpan: 2
+ }
- MobileComponents.Label {
- text: "Distance threshold (meters)"
- Layout.alignment: Qt.AlignRight
- }
+ MobileComponents.Label {
+ text: "Distance threshold (meters)"
+ Layout.alignment: Qt.AlignRight
+ }
- TextField {
- id: distanceThreshold
- text: manager.distanceThreshold
- Layout.fillWidth: true
- }
+ TextField {
+ id: distanceThreshold
+ text: manager.distanceThreshold
+ Layout.fillWidth: true
+ }
- MobileComponents.Label {
- text: "Time threshold (minutes)"
- Layout.alignment: Qt.AlignRight
- }
+ MobileComponents.Label {
+ text: "Time threshold (minutes)"
+ Layout.alignment: Qt.AlignRight
+ }
- TextField {
- id: timeThreshold
- text: manager.timeThreshold
- Layout.fillWidth: true
- }
+ TextField {
+ id: timeThreshold
+ text: manager.timeThreshold
+ Layout.fillWidth: true
+ }
- Item { width: MobileComponents.Units.gridUnit; height: width }
- Item {
- Layout.preferredHeight: saveButton.height
- Layout.preferredWidth: saveButton.width
- SubsurfaceButton {
- id: saveButton
- text: "Save"
- anchors.centerIn: parent
- onClicked: {
- manager.distanceThreshold = distanceThreshold.text
- manager.timeThreshold = timeThreshold.text
- manager.savePreferences()
- stackView.pop()
+ Item { width: MobileComponents.Units.gridUnit; height: width }
+ Item {
+ Layout.preferredHeight: saveButton.height
+ Layout.preferredWidth: saveButton.width
+ SubsurfaceButton {
+ id: saveButton
+ text: "Save"
+ anchors.centerIn: parent
+ onClicked: {
+ manager.distanceThreshold = distanceThreshold.text
+ manager.timeThreshold = timeThreshold.text
+ manager.savePreferences()
+ stackView.pop()
+ }
}
}
- }
- Item {
- Layout.fillHeight: true
+ Item {
+ Layout.fillHeight: true
+ }
}
}
-}