From 5dc78ed4e2891205a7162b696b3439a87253140f Mon Sep 17 00:00:00 2001 From: Shawn Rutledge Date: Tue, 10 Mar 2020 12:57:32 +0100 Subject: PdfSelection: add selectAll() function; use in examples The usual shortcut (control-A) now selects all text on the current page, it is highlighted, and it can be copied to the clipboard. Change-Id: I5e6d9cae675862808f8b9027cb47024ca65cf2fd Reviewed-by: Shawn Rutledge --- examples/pdf/multipage/viewer.qml | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'examples/pdf/multipage/viewer.qml') diff --git a/examples/pdf/multipage/viewer.qml b/examples/pdf/multipage/viewer.qml index 282636564..02513fa5b 100644 --- a/examples/pdf/multipage/viewer.qml +++ b/examples/pdf/multipage/viewer.qml @@ -159,6 +159,13 @@ ApplicationWindow { ToolTip.delay: 2000 ToolTip.text: "go forward" } + ToolButton { + action: Action { + shortcut: StandardKey.SelectAll + icon.source: "resources/edit-select-all.svg" + onTriggered: view.selectAll() + } + } ToolButton { action: Action { shortcut: StandardKey.Copy -- cgit v1.2.3