From 492586930b4edbee5a8ab13de3fead9efa1b3e38 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Thu, 9 Jan 2020 11:33:12 +0100 Subject: Gallery example: Add "Help" menu and shortcut Add a property "control" identifying the control to be demo-ed to the page and add a help shortcut and menu item displaying its help. Change-Id: Ic3c7c31f5a44fccd57ee018fd3681dc6bdffee58 Reviewed-by: Cristian Maureira-Fredes Reviewed-by: Paul Wicking Reviewed-by: Venugopal Shivashankar --- examples/quickcontrols2/gallery/pages/SwitchPage.qml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'examples/quickcontrols2/gallery/pages/SwitchPage.qml') diff --git a/examples/quickcontrols2/gallery/pages/SwitchPage.qml b/examples/quickcontrols2/gallery/pages/SwitchPage.qml index 53ee1660..9e3f03f8 100644 --- a/examples/quickcontrols2/gallery/pages/SwitchPage.qml +++ b/examples/quickcontrols2/gallery/pages/SwitchPage.qml @@ -54,6 +54,8 @@ import QtQuick.Controls 2.12 ScrollablePage { id: page + readonly property string control : "switch" + Column { spacing: 40 width: parent.width -- cgit v1.2.3