diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2016-02-12 04:51:03 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-02-12 09:56:27 -0800 |
commit | d9d1b58e6a23f71012c7f1eef585241cc17d696c (patch) | |
tree | 74a9ecb0f34bc5e88314361c1de1467eb74e84a3 /qt-mobile/qml/GpsList.qml | |
parent | a738174a45a61edab94ba84e4a8afb029b6987d0 (diff) | |
download | subsurface-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/GpsList.qml')
-rw-r--r-- | qt-mobile/qml/GpsList.qml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/qt-mobile/qml/GpsList.qml b/qt-mobile/qml/GpsList.qml index 2c30ae171..322b2b1a6 100644 --- a/qt-mobile/qml/GpsList.qml +++ b/qt-mobile/qml/GpsList.qml @@ -14,6 +14,16 @@ MobileComponents.Page { anchors.margins: MobileComponents.Units.gridUnit / 2 objectName: "gpsList" + contextualActions: [ + Action { + text: "Close GPS list" + iconName: "dialog-cancel" + onTriggered: { + stackView.pop() + contextDrawer.close() + } + } + ] Component { id: gpsDelegate MobileComponents.ListItemWithActions { |