summaryrefslogtreecommitdiffstats
path: root/profile-widget/profilewidget2.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2020-10-26 10:02:23 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-10-26 19:27:03 -0700
commitc463da3faceb5e9d94e2378148fc39194dc9b5f0 (patch)
tree8e398d5f362211ba7a1d26b6e82e138ac356de5a /profile-widget/profilewidget2.cpp
parent7fb4dd7a035a25ec5c5ada52f36cc6ab683a0dec (diff)
downloadsubsurface-c463da3faceb5e9d94e2378148fc39194dc9b5f0.tar.gz
cleanup: replace deprecated pos() member
Again, replacement was just recently added. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'profile-widget/profilewidget2.cpp')
-rw-r--r--profile-widget/profilewidget2.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/profile-widget/profilewidget2.cpp b/profile-widget/profilewidget2.cpp
index 7dbb4cb05..5b0bd8286 100644
--- a/profile-widget/profilewidget2.cpp
+++ b/profile-widget/profilewidget2.cpp
@@ -1022,7 +1022,11 @@ void ProfileWidget2::wheelEvent(QWheelEvent *event)
scale(1.0 / zoomFactor, 1.0 / zoomFactor);
zoomLevel--;
}
+#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
+ scrollViewTo(event->position().toPoint());
+#else
scrollViewTo(event->pos());
+#endif
toolTipItem->setPos(mapToScene(toolTipPos));
}