diff options
author | Shawn Rutledge <shawn.rutledge@qt.io> | 2020-07-29 18:36:20 +0200 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2020-07-29 21:03:41 +0200 |
commit | 062cd9dd37cd28a1b4a4b8cfc2b5c8f83dd3df3d (patch) | |
tree | 6115b2ffd3951d4a7388b3e90a2d388f97e22783 /src/quickwidgets | |
parent | 112b1b6748d1712d712f572157bbe04483a6280d (diff) |
Fix more deprecated accessors
Amends 212c2bffbb041aee0e3c9a7f0551ef151ed2d3ad
Change-Id: I93b073c88af24ce6535371bb279c660799568297
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/quickwidgets')
-rw-r--r-- | src/quickwidgets/qquickwidget.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/quickwidgets/qquickwidget.cpp b/src/quickwidgets/qquickwidget.cpp index 6691736080..e7a9095f4f 100644 --- a/src/quickwidgets/qquickwidget.cpp +++ b/src/quickwidgets/qquickwidget.cpp @@ -1361,7 +1361,7 @@ void QQuickWidget::mouseMoveEvent(QMouseEvent *e) { Q_D(QQuickWidget); Q_QUICK_INPUT_PROFILE(QQuickProfiler::Mouse, QQuickProfiler::InputMouseMove, e->position().x(), - e->localPos().y()); + e->position().y()); // Put localPos into the event's localPos and windowPos, and screenPos into the // event's screenPos. This way the windowPos in e is ignored and is replaced by @@ -1603,8 +1603,8 @@ bool QQuickWidget::event(QEvent *e) case QEvent::Enter: { QEnterEvent *enterEvent = static_cast<QEnterEvent *>(e); - QEnterEvent mappedEvent(enterEvent->localPos(), enterEvent->windowPos(), - enterEvent->screenPos()); + QEnterEvent mappedEvent(enterEvent->position(), enterEvent->scenePosition(), + enterEvent->globalPosition()); const bool ret = QCoreApplication::sendEvent(d->offscreenWindow, &mappedEvent); e->setAccepted(mappedEvent.isAccepted()); return ret; |