summaryrefslogtreecommitdiffstats
path: root/tests/manual
diff options
context:
space:
mode:
Diffstat (limited to 'tests/manual')
-rw-r--r--tests/manual/quick/pdf/withdoc.qml22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/manual/quick/pdf/withdoc.qml b/tests/manual/quick/pdf/withdoc.qml
index 0fed5b16e..fe3297ee8 100644
--- a/tests/manual/quick/pdf/withdoc.qml
+++ b/tests/manual/quick/pdf/withdoc.qml
@@ -51,6 +51,7 @@ import QtQuick 2.14
import QtQuick.Controls 2.14
import Qt.labs.platform 1.1 as Platform
import QtQuick.Pdf 5.15
+import QtQuick.Shapes 1.14
import QtQuick.Window 2.14
Window {
@@ -72,6 +73,15 @@ Window {
onAccepted: doc.source = file
}
+ PdfSelection {
+ id: selection
+ document: doc
+ page: image.currentFrame
+ fromPoint: dragHandler.centroid.pressPosition
+ toPoint: dragHandler.centroid.position
+ hold: !dragHandler.active
+ }
+
Column {
id: column
anchors.fill: parent
@@ -149,6 +159,18 @@ Window {
onActivated: Qt.quit()
}
}
+
+ Shape {
+ anchors.fill: parent
+ opacity: 0.25
+ ShapePath {
+ fillColor: "cyan"
+ PathMultiline {
+ id: selectionBoundaries
+ paths: selection.geometry
+ }
+ }
+ }
}
}
}