diff options
author | Sona Kurazyan <sona.kurazyan@qt.io> | 2019-08-21 10:17:44 +0200 |
---|---|---|
committer | Sona Kurazyan <sona.kurazyan@qt.io> | 2019-08-21 22:57:12 +0200 |
commit | 5ba1ffc31227e652f98eb27c47e20a42f197f6b6 (patch) | |
tree | b8820b7b5ba73062187f273c5decb6b4e2154504 /src/location/declarativemaps/qquickgeomapgesturearea.cpp | |
parent | 3d2aac6ec0661e24acb166b4763b313d68993815 (diff) | |
download | qtlocation-5ba1ffc31227e652f98eb27c47e20a42f197f6b6.tar.gz |
Replace the deprecated QWheelEvent::posF() -> QWheelEvent::position()
Change-Id: I0aa13b6c472664ad2c6175fa800687598207ab8e
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'src/location/declarativemaps/qquickgeomapgesturearea.cpp')
-rw-r--r-- | src/location/declarativemaps/qquickgeomapgesturearea.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/location/declarativemaps/qquickgeomapgesturearea.cpp b/src/location/declarativemaps/qquickgeomapgesturearea.cpp index 13315917..a33db67a 100644 --- a/src/location/declarativemaps/qquickgeomapgesturearea.cpp +++ b/src/location/declarativemaps/qquickgeomapgesturearea.cpp @@ -999,8 +999,8 @@ void QQuickGeoMapGestureArea::handleWheelEvent(QWheelEvent *event) return; } - const QGeoCoordinate &wheelGeoPos = m_declarativeMap->toCoordinate(event->posF(), false); - const QPointF &preZoomPoint = event->posF(); + const QGeoCoordinate &wheelGeoPos = m_declarativeMap->toCoordinate(event->position(), false); + const QPointF &preZoomPoint = event->position(); // Not using AltModifier as, for some reason, it causes angleDelta to be 0 if (event->modifiers() & Qt::ShiftModifier && rotationEnabled()) { |