diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2020-10-26 10:02:23 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-10-26 19:27:03 -0700 |
commit | c463da3faceb5e9d94e2378148fc39194dc9b5f0 (patch) | |
tree | 8e398d5f362211ba7a1d26b6e82e138ac356de5a | |
parent | 7fb4dd7a035a25ec5c5ada52f36cc6ab683a0dec (diff) | |
download | subsurface-c463da3faceb5e9d94e2378148fc39194dc9b5f0.tar.gz |
cleanup: replace deprecated pos() member
Again, replacement was just recently added.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | profile-widget/profilewidget2.cpp | 4 |
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)); } |