summaryrefslogtreecommitdiffstats
path: root/src/pdf/qpdflinkmodel.cpp
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2020-02-19 15:46:02 +0100
committerShawn Rutledge <shawn.rutledge@qt.io>2020-02-19 18:20:32 +0100
commit57af89d1fcbc81e9d17a02be3f54ca239afe6697 (patch)
tree1ced3d9d5c917ab458e9d05a86b73fdaa71d7cc5 /src/pdf/qpdflinkmodel.cpp
parent34f52195b99a03dfdacc6b1eccb236d553b93ac0 (diff)
Fix PdfLinkModel's location y coordinate; add PdfMultiPageView tooltip
As usual, coordinates are in the first quadrant, and we need to convert to 4th quadrant to get a y value that can be used to adjust contentY of a ListView or TableView. The tooltip when hovering over links provides a way to verify that the link really jumps where it's intended to. Change-Id: I9107639f15496a987c0fa7c3c2e2583c3839cc6b Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/pdf/qpdflinkmodel.cpp')
-rw-r--r--src/pdf/qpdflinkmodel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pdf/qpdflinkmodel.cpp b/src/pdf/qpdflinkmodel.cpp
index 8b49fec21..96e6ddd5c 100644
--- a/src/pdf/qpdflinkmodel.cpp
+++ b/src/pdf/qpdflinkmodel.cpp
@@ -179,7 +179,7 @@ void QPdfLinkModelPrivate::update()
if (!ok)
break;
if (hasX && hasY)
- linkData.location = QPointF(x, y);
+ linkData.location = QPointF(x, pageHeight - y);
if (hasZoom)
linkData.zoom = zoom;
links << linkData;