mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
cleanup: replace deprecated pos() member
Again, replacement was just recently added. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
7fb4dd7a03
commit
c463da3fac
1 changed files with 4 additions and 0 deletions
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue