summaryrefslogtreecommitdiffstats
path: root/src/pdf/quick/qquickpdfselection_p.h
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2020-03-10 12:57:32 +0100
committerShawn Rutledge <shawn.rutledge@qt.io>2020-03-11 08:31:44 +0100
commit5dc78ed4e2891205a7162b696b3439a87253140f (patch)
tree09778a7d19015f627be5efa813bf4730a82c1ed1 /src/pdf/quick/qquickpdfselection_p.h
parentf253884934cbdbc16fd9b783a2b115960d11af10 (diff)
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 <shawn.rutledge@qt.io>
Diffstat (limited to 'src/pdf/quick/qquickpdfselection_p.h')
-rw-r--r--src/pdf/quick/qquickpdfselection_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pdf/quick/qquickpdfselection_p.h b/src/pdf/quick/qquickpdfselection_p.h
index a0e6d1a8d..bb4a50fed 100644
--- a/src/pdf/quick/qquickpdfselection_p.h
+++ b/src/pdf/quick/qquickpdfselection_p.h
@@ -86,6 +86,7 @@ public:
QString text() const;
QVector<QPolygonF> geometry() const;
+ Q_INVOKABLE void selectAll();
#if QT_CONFIG(clipboard)
Q_INVOKABLE void copyToClipboard() const;
#endif