aboutsummaryrefslogtreecommitdiffstats
path: root/qt-mobile/qml/Preferences.qml
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-02-10 15:02:21 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-02-10 20:58:11 -0800
commitab36a3dad11da7f1d40f26412cef1d54a7852eac (patch)
tree694b523e60ac873be4c82e7c0b078bcf57cd76e5 /qt-mobile/qml/Preferences.qml
parent82a982b90370cf09c8ac43d68ade30d010fcfd12 (diff)
downloadsubsurface-ab36a3dad11da7f1d40f26412cef1d54a7852eac.tar.gz
QML UI: make back key work for all pages
Reported by a beta tester for the GPS preferences, but affects a couple more. We need to make sure that any page on the page stack is actually a MobileComponents.Page, other wise the Android back key doesn't close the page. This commit changes GPS preferences, the theme test, and the currently disabled download from divecomputer. it contains only the actual change (wrap the current content in a page). The reindentation is a separate commit for readability. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-mobile/qml/Preferences.qml')
-rw-r--r--qt-mobile/qml/Preferences.qml3
1 files changed, 2 insertions, 1 deletions
diff --git a/qt-mobile/qml/Preferences.qml b/qt-mobile/qml/Preferences.qml
index c8b172b31..3a092f348 100644
--- a/qt-mobile/qml/Preferences.qml
+++ b/qt-mobile/qml/Preferences.qml
@@ -6,7 +6,7 @@ import QtQuick.Layouts 1.1
import org.kde.plasma.mobilecomponents 0.2 as MobileComponents
import org.subsurfacedivelog.mobile 1.0
-
+MobileComponents.Page {
GridLayout {
signal accept
@@ -75,3 +75,4 @@ GridLayout {
Layout.fillHeight: true
}
}
+}