diff options
-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)); } |