summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2022-06-03 16:49:03 +0200
committerShawn Rutledge <shawn.rutledge@qt.io>2022-06-04 20:55:32 +0200
commit24b7651599d3b4a53f781a9b27910a782506fed6 (patch)
treebf7b5566fc6567fc9f832cf0be9b301c46c53b49 /tests
parent66aca3c846082c516bef3b35eb5332ebba24ce9e (diff)
Fix issues in PdfLinkDelegate
- gesturePolicy must be set to take an exclusive grab, to avoid letting events propagate to another TapHandler in TableView - behavior was incorrect on the touchscreen - fixed doc warnings about the undocumented link arguments Change-Id: Ic438383b6b6d67936ce2b88b84ef131f41e0d2fb Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/manual/quick/pdf/underscoredLinks.qml8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/manual/quick/pdf/underscoredLinks.qml b/tests/manual/quick/pdf/underscoredLinks.qml
index 845ffec37..984dc0b0f 100644
--- a/tests/manual/quick/pdf/underscoredLinks.qml
+++ b/tests/manual/quick/pdf/underscoredLinks.qml
@@ -153,10 +153,10 @@ ApplicationWindow {
page: image.currentFrame
}
delegate: PdfLinkDelegate {
- x: rect.x
- y: rect.y
- width: rect.width
- height: rect.height
+ x: rectangle.x
+ y: rectangle.y
+ width: rectangle.width
+ height: rectangle.height
onTapped:
(link) => {
if (link.page >= 0)