QGuiApplication: Propagate wheel event accepted state
Propagate the accepted state from the QtGui event to the QWindowsSystemInterface event. This makes it possible for the platform plugins to propagate rejected wheel events to the native OS. Task-number: QTBUG-107441 Change-Id: Ifa90ed2430e56120a1a04b6a5872a153d26aa6bc Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io> (cherry picked from commit 827e010233f58610f73c79d30a858afb23cb1637) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
1ba96f533d
commit
cfea2bd0cd
@ -2366,6 +2366,7 @@ void QGuiApplicationPrivate::processWheelEvent(QWindowSystemInterfacePrivate::Wh
|
||||
mouse_buttons, e->modifiers, e->phase, e->inverted, e->source, device);
|
||||
ev.setTimestamp(e->timestamp);
|
||||
QGuiApplication::sendSpontaneousEvent(window, &ev);
|
||||
e->eventAccepted = ev.isAccepted();
|
||||
#else
|
||||
Q_UNUSED(e);
|
||||
#endif // QT_CONFIG(wheelevent)
|
||||
|
Loading…
x
Reference in New Issue
Block a user