Use QPointF for native gesture delta values
Needed after qtbase e3aa45006dc883adb92b4c94a0108d3b75012dce and de540c283d96630c189df9c9be37f68ad8285056. Pick-to: 6.2 Change-Id: Ieb199eca9d550d9e8e4963458508a91ec9db1728 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
parent
cd995a7adf
commit
a43bf3fc73
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user