summaryrefslogtreecommitdiffstats
path: root/qt-mobile/qml/DownloadFromDiveComputer.qml
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-02-12 04:51:03 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-02-12 09:56:27 -0800
commitd9d1b58e6a23f71012c7f1eef585241cc17d696c (patch)
tree74a9ecb0f34bc5e88314361c1de1467eb74e84a3 /qt-mobile/qml/DownloadFromDiveComputer.qml
parenta738174a45a61edab94ba84e4a8afb029b6987d0 (diff)
downloadsubsurface-d9d1b58e6a23f71012c7f1eef585241cc17d696c.tar.gz
QML UI: experimentally enable context menu on each page
This is necessary to allow all user interaction when removing action buttons from the top bar. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-mobile/qml/DownloadFromDiveComputer.qml')
-rw-r--r--qt-mobile/qml/DownloadFromDiveComputer.qml11
1 files changed, 11 insertions, 0 deletions
diff --git a/qt-mobile/qml/DownloadFromDiveComputer.qml b/qt-mobile/qml/DownloadFromDiveComputer.qml
index 67f21345c..529af82eb 100644
--- a/qt-mobile/qml/DownloadFromDiveComputer.qml
+++ b/qt-mobile/qml/DownloadFromDiveComputer.qml
@@ -14,6 +14,17 @@ MobileComponents.Page {
height: parent.height
Layout.fillWidth: true;
+ contextualActions: [
+ Action {
+ text: "Close Preferences"
+ iconName: "dialog-cancel"
+ onTriggered: {
+ stackView.pop()
+ contextDrawer.close()
+ }
+ }
+ ]
+
ColumnLayout {
anchors.top: parent.top
height: parent.height