diff options
author | Shawn Rutledge <shawn.rutledge@qt.io> | 2022-06-22 22:15:08 +0200 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2024-03-26 23:22:12 -0700 |
commit | ac447e8dc2f0b0c711ca17211646784dc9c5395f (patch) | |
tree | adb8acbccc54e3a6f709816191c7c36852a2c5af /src/webenginewidgets | |
parent | eae0536be815f732a1c11c892d5808ce4113f365 (diff) |
PdfLinkModel: if quadpoints available, convert to rects
If QPdfLink stored polygons instead of rects, it would make sense to
transform each point using QPdfDocumentPrivate::mapPageToView();
but the quadpoints (polygons) in the test.pdf from QTBUG-100630 happen
to describe rectangles. This patch successfully does the transform so
that they line up with the link text. It doesn't do much good since the
links in that PDF are invalid anyway, but presumably links using
quadpoints occur in the real world sometimes.
Pick-to: 6.7
Task-number: QTBUG-100630
Change-Id: I0cb151dbb30ca73c8f9ed2bcd29508ced05de064
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
Diffstat (limited to 'src/webenginewidgets')
0 files changed, 0 insertions, 0 deletions