diff options
author | Sona Kurazyan <sona.kurazyan@qt.io> | 2019-08-09 16:47:32 +0200 |
---|---|---|
committer | Sona Kurazyan <sona.kurazyan@qt.io> | 2019-08-23 17:17:51 +0200 |
commit | 7ca9b86c7858b828070d852c8a070f93434acc54 (patch) | |
tree | 922ebcb4aef131bffe64c74f46ddb84fadbea47d /src | |
parent | 422856bb470e1380309c66a8ba4b40e06d1df830 (diff) |
Remove the usage of deprecated QWheelEvent::pos
Task-number: QTBUG-76491
Change-Id: I5831525f8ac4bf0cbec6a52a434b1d8c3b388b80
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/datavisualization/input/q3dinputhandler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/datavisualization/input/q3dinputhandler.cpp b/src/datavisualization/input/q3dinputhandler.cpp index 5e6f10af..3d5dd059 100644 --- a/src/datavisualization/input/q3dinputhandler.cpp +++ b/src/datavisualization/input/q3dinputhandler.cpp @@ -262,7 +262,7 @@ void Q3DInputHandler::wheelEvent(QWheelEvent *event) zoomLevel = qBound(minZoomLevel, zoomLevel, maxZoomLevel); if (isZoomAtTargetEnabled()) { - scene()->setGraphPositionQuery(event->pos()); + scene()->setGraphPositionQuery(event->position().toPoint()); d_ptr->m_zoomAtTargetPending = true; // If zoom at target is enabled, we don't want to zoom yet, as that causes // jitter. Instead, we zoom next frame, when we apply the camera position. |