From 08ade0eb6f36379a62a5b68f965e70fe55aa7199 Mon Sep 17 00:00:00 2001 From: Filippo Scognamiglio Date: Mon, 13 Oct 2014 22:53:26 +0200 Subject: [PATCH] Fix regression: copy and paste were not working anymore. --- app/qml/PreprocessedTerminal.qml | 16 ++++++++++------ app/qml/main.qml | 2 -- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/app/qml/PreprocessedTerminal.qml b/app/qml/PreprocessedTerminal.qml index 3627916..66ecfa7 100644 --- a/app/qml/PreprocessedTerminal.qml +++ b/app/qml/PreprocessedTerminal.qml @@ -66,16 +66,20 @@ Item{ onMBlurChanged: restartBlurredSource() + // Manage copy and paste + Connections{ + target: copyAction + onTriggered: kterminal.copyClipboard(); + } + Connections{ + target: pasteAction + onTriggered: kterminal.pasteClipboard() + } + function restartBlurredSource(){ if(!blurredSourceLoader.item) return; blurredSourceLoader.item.restartBlurSource(); } - function pasteClipboard(){ - kterminal.pasteClipboard(); - } - function copyClipboard(){ - kterminal.copyClipboard(); - } //When settings are updated sources need to be redrawn. Connections{ diff --git a/app/qml/main.qml b/app/qml/main.qml index e1dc6c4..3227ca5 100644 --- a/app/qml/main.qml +++ b/app/qml/main.qml @@ -77,13 +77,11 @@ ApplicationWindow{ id: copyAction text: qsTr("Copy") shortcut: "Ctrl+Shift+C" - onTriggered: terminal.copyClipboard() } Action{ id: pasteAction text: qsTr("Paste") shortcut: "Ctrl+Shift+V" - onTriggered: terminal.pasteClipboard() } Action{ id: zoomIn