diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2016-02-12 12:17:43 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-02-12 12:17:43 -0800 |
commit | 45b0554a67799c8b07c3e0de424d4f1f0bf85864 (patch) | |
tree | bd7f43a8118a866f571ea634194479bd1a8fa49f /qt-mobile/qml | |
parent | d9d1b58e6a23f71012c7f1eef585241cc17d696c (diff) | |
download | subsurface-45b0554a67799c8b07c3e0de424d4f1f0bf85864.tar.gz |
QML UI: add context menu to Theme Test
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-mobile/qml')
-rw-r--r-- | qt-mobile/qml/ThemeTest.qml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/qt-mobile/qml/ThemeTest.qml b/qt-mobile/qml/ThemeTest.qml index 3ca10f0a1..392284c13 100644 --- a/qt-mobile/qml/ThemeTest.qml +++ b/qt-mobile/qml/ThemeTest.qml @@ -3,6 +3,18 @@ import QtQuick.Layouts 1.1 import org.kde.plasma.mobilecomponents 0.2 as MobileComponents MobileComponents.Page { + + contextualActions: [ + Action { + text: "Close Theme info" + iconName: "dialog-cancel" + onTriggered: { + stackView.pop() + contextDrawer.close() + } + } + ] + GridLayout { id: themetest columns: 2 |