From 45b0554a67799c8b07c3e0de424d4f1f0bf85864 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Fri, 12 Feb 2016 12:17:43 -0800 Subject: QML UI: add context menu to Theme Test Signed-off-by: Dirk Hohndel --- qt-mobile/qml/ThemeTest.qml | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 -- cgit v1.2.3-70-g09d2