From c463da3faceb5e9d94e2378148fc39194dc9b5f0 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 26 Oct 2020 10:02:23 -0700 Subject: [PATCH] cleanup: replace deprecated pos() member Again, replacement was just recently added. Signed-off-by: Dirk Hohndel --- profile-widget/profilewidget2.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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)); }