From: Kevin Krammer Date: Wed, 17 Oct 2012 18:34:29 +0000 (+0200) Subject: Connect editor context menu actions X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=472eee1e7370db15f414bff87f58e89c67775b9d;p=web%2Fkonrad%2FDeclarativeWidgets.git Connect editor context menu actions --- diff --git a/editor.qml b/editor.qml index 6e9f5e0..53a5379 100644 --- a/editor.qml +++ b/editor.qml @@ -114,10 +114,18 @@ MainWindow { contextMenuPolicy: Qt.ActionsContextMenu Action { - text: "Copy" + text: qsTr("Cut") + onTriggered: textEdit.cut() } + + Action { + text: qsTr("Copy") + onTriggered: textEdit.copy() + } + Action { - text: "Paste" + text: qsTr("Paste") + onTriggered: textEdit.paste() } }