Connect editor context menu actions
authorKevin Krammer <kevin.krammer@kdab.com>
Wed, 17 Oct 2012 18:34:29 +0000 (20:34 +0200)
committerKevin Krammer <kevin.krammer@kdab.com>
Wed, 17 Oct 2012 18:34:29 +0000 (20:34 +0200)
editor.qml

index 6e9f5e0..53a5379 100644 (file)
@@ -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()
     }
   }