cleanup: replace deprecated pos() member

Again, replacement was just recently added.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2020-10-26 10:02:23 -07:00
parent 7fb4dd7a03
commit c463da3fac

View file

@ -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));
}