diff options
author | Shawn Rutledge <shawn.rutledge@qt.io> | 2022-06-03 16:49:03 +0200 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2022-06-04 20:55:32 +0200 |
commit | 24b7651599d3b4a53f781a9b27910a782506fed6 (patch) | |
tree | bf7b5566fc6567fc9f832cf0be9b301c46c53b49 /tests | |
parent | 66aca3c846082c516bef3b35eb5332ebba24ce9e (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.qml | 8 |
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) |