summaryrefslogtreecommitdiff
path: root/examples/quick/controls/gallery/content/Controls.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/quick/controls/gallery/content/Controls.qml')
-rw-r--r--examples/quick/controls/gallery/content/Controls.qml8
1 files changed, 8 insertions, 0 deletions
diff --git a/examples/quick/controls/gallery/content/Controls.qml b/examples/quick/controls/gallery/content/Controls.qml
index 310eee59..c1403da5 100644
--- a/examples/quick/controls/gallery/content/Controls.qml
+++ b/examples/quick/controls/gallery/content/Controls.qml
@@ -180,6 +180,14 @@ Item {
height: parent.height - group1.height - group2.height - 2 * parent.spacing
anchors { right: parent.right }
}
+
+ MouseArea {
+ id: contextMenu
+ parent: area.viewport
+ anchors.fill: parent
+ acceptedButtons: Qt.RightButton
+ onPressed: editmenu.popup()
+ }
}
}
}