From 7e2bd9135935bf893410bfa2f484f17443ddd826 Mon Sep 17 00:00:00 2001 From: Arjen Hiemstra Date: Tue, 17 Mar 2015 15:48:23 +0100 Subject: [PATCH] Expose contextMenuRequested signal to QML --- Printer.qml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Printer.qml b/Printer.qml index 0283e2d1fc..26639f27da 100644 --- a/Printer.qml +++ b/Printer.qml @@ -232,6 +232,15 @@ UM.MainWindow { MenuItem { action: actions.deleteSelection; } } + Connections { + target: UM.Controller + onContextMenuRequested: { + if(id == 0) { + contextMenu.popup(); + } + } + } + FileDialog { id: openDialog;