diff options
author | Sebastian Kügler <sebas@kde.org> | 2015-12-04 00:26:45 +0100 |
---|---|---|
committer | Sebastian Kügler <sebas@kde.org> | 2015-12-07 18:46:32 +0100 |
commit | 72411eee63fba5cfba5a97e438e5c494fa928fd0 (patch) | |
tree | d17f9913dd21ec3f06c2def02149f190dd003a9e /qt-mobile | |
parent | d9cfdc3b69eea53cc060eec2230f74c847789c40 (diff) | |
download | subsurface-72411eee63fba5cfba5a97e438e5c494fa928fd0.tar.gz |
Fix indentation
It's a bit all over the place. This makes it consistent and aligned.
Signed-off-by: Sebastian Kügler <sebas@kde.org>
Diffstat (limited to 'qt-mobile')
-rw-r--r-- | qt-mobile/qml/main.qml | 137 |
1 files changed, 73 insertions, 64 deletions
diff --git a/qt-mobile/qml/main.qml b/qt-mobile/qml/main.qml index 5bfb6c591..3e2700149 100644 --- a/qt-mobile/qml/main.qml +++ b/qt-mobile/qml/main.qml @@ -19,93 +19,102 @@ MobileComponents.ApplicationWindow { visible: true - globalDrawer: MobileComponents.GlobalDrawer{ + globalDrawer: MobileComponents.GlobalDrawer { title: "Subsurface" titleIcon: "qrc:/qml/subsurface-mobile-icon.png" bannerImageSource: "dive.jpg" actions: [ - Action { - text: "Preferences" - onTriggered: { - stackView.push(prefsWindow) - } - }, - - Action { - text: "Cloud login credentials" - onTriggered: { - stackView.push(cloudCredWindow) - } - }, - - Action { - text: "Load dives from cloud" - onTriggered: { - manager.loadDives(); - } - }, + Action { + text: "Preferences" + onTriggered: { + stackView.push(prefsWindow) + } + }, - Action { - text: "Download dives from dive computer" - onTriggered: { - stackView.push(downloadDivesWindow) - } - }, + Action { + text: "Cloud login credentials" + onTriggered: { + stackView.push(cloudCredWindow) + } + }, - Action { - text: "Add dive" - onTriggered: { - manager.addDive(); - stackView.push(detailsWindow) - } - }, + Action { + text: "Load Dives" + onTriggered: { + manager.loadDives(); + } + }, - Action { - text: "Save changes" - onTriggered: { - manager.saveChanges(); - } - }, + Action { + text: "Download Dives" + onTriggered: { + stackView.push(downloadDivesWindow) + } + }, - MobileComponents.ActionGroup { - text: "GPS" Action { - text: "Apply GPS data to dives" + text: "Add Dive" onTriggered: { - manager.applyGpsData(); + manager.addDive(); + stackView.push(detailsWindow) } - } + }, Action { - text: "Send GPS data to server" + text: "Save Changes" onTriggered: { - manager.sendGpsData(); + manager.saveChanges(); + } + }, + + MobileComponents.ActionGroup { + text: "GPS" + Action { + text: "Run location service" + checkable: true + checked: manager.locationServiceEnabled + onToggled: { + manager.locationServiceEnabled = checked; + } + } + Action { + text: "Apply GPS data to dives" + onTriggered: { + manager.applyGpsData(); + } + } + + Action { + text: "Send GPS data to server" + onTriggered: { + manager.sendGpsData(); + } } - } + + Action { + text: "Clear stored GPS data" + onTriggered: { + manager.clearGpsData(); + } + } + }, Action { - text: "Clear stored GPS data" + text: "View Log" onTriggered: { - manager.clearGpsData(); + stackView.push(logWindow) } - } - }, + }, - Action { - text: "View log" - onTriggered: { - stackView.push(logWindow) + Action { + text: "Theme Information" + onTriggered: { + stackView.push(themetest) + } } - }, + ] // end actions - Action { - text: "Theme information" - onTriggered: { - stackView.push(themetest) - } - } - ] MouseArea { height: childrenRect.height width: MobileComponents.Units.gridUnit * 10 |