From a43bf3fc73daea82ab3790bf07882e0d078a2fd8 Mon Sep 17 00:00:00 2001 From: Shawn Rutledge Date: Tue, 13 Jul 2021 12:33:01 +0200 Subject: [PATCH] Use QPointF for native gesture delta values Needed after qtbase e3aa45006dc883adb92b4c94a0108d3b75012dce and de540c283d96630c189df9c9be37f68ad8285056. Pick-to: 6.2 Change-Id: Ieb199eca9d550d9e8e4963458508a91ec9db1728 Reviewed-by: Volker Hilsheimer --- src/plugins/platforms/wayland/qwaylandwindow.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/plugins/platforms/wayland/qwaylandwindow.cpp b/src/plugins/platforms/wayland/qwaylandwindow.cpp index 5ad4d754971..2ca45259f72 100644 --- a/src/plugins/platforms/wayland/qwaylandwindow.cpp +++ b/src/plugins/platforms/wayland/qwaylandwindow.cpp @@ -1004,10 +1004,10 @@ void QWaylandWindow::handleSwipeGesture(QWaylandInputDevice *inputDevice, return; if (!e.delta.isNull()) { - QWindowSystemInterface::handleGestureEventWithValueAndDeltas( + QWindowSystemInterface::handleGestureEventWithValueAndDelta( window(), e.timestamp, inputDevice->mTouchPadDevice, Qt::PanNativeGesture, - 0, QVector2D(e.delta), e.local, e.global, e.fingers); + 0, e.delta, e.local, e.global, e.fingers); } break; case Qt::GestureFinished: @@ -1059,10 +1059,10 @@ void QWaylandWindow::handlePinchGesture(QWaylandInputDevice *inputDevice, return; if (!e.delta.isNull()) { - QWindowSystemInterface::handleGestureEventWithValueAndDeltas( + QWindowSystemInterface::handleGestureEventWithValueAndDelta( window(), e.timestamp, inputDevice->mTouchPadDevice, Qt::PanNativeGesture, - 0, QVector2D(e.delta), e.local, e.global, e.fingers); + 0, e.delta, e.local, e.global, e.fingers); } if (e.rotation_delta != 0) { QWindowSystemInterface::handleGestureEventWithRealValue(window(), e.timestamp,