summaryrefslogtreecommitdiffstats
path: root/framework/qml/ContextMenuOverlay.qml
diff options
context:
space:
mode:
Diffstat (limited to 'framework/qml/ContextMenuOverlay.qml')
-rw-r--r--framework/qml/ContextMenuOverlay.qml8
1 files changed, 8 insertions, 0 deletions
diff --git a/framework/qml/ContextMenuOverlay.qml b/framework/qml/ContextMenuOverlay.qml
index 24ad9701..472b6f4d 100644
--- a/framework/qml/ContextMenuOverlay.qml
+++ b/framework/qml/ContextMenuOverlay.qml
@@ -23,11 +23,19 @@ import org.kube.framework 1.0 as Kube
23import QtQuick.Layouts 1.3 23import QtQuick.Layouts 1.3
24 24
25Item { 25Item {
26 id: root
26 default property alias children: menuLayout.children 27 default property alias children: menuLayout.children
27 function close() { 28 function close() {
28 menu.close() 29 menu.close()
29 } 30 }
30 31
32 Component.onCompleted: {
33 for (var i = 0; i < root.children.length; i++) {
34 var child = root.children[i]
35 child.clicked.connect(close)
36 }
37 }
38
31 Rectangle { 39 Rectangle {
32 anchors.fill: parent 40 anchors.fill: parent
33 color: "transparent" 41 color: "transparent"