Add missing timestamp to tablet events

When copying the event for notify, timestamp was not set as it is for
other input events.

Pick-to: 6.5
Change-Id: I81bb89993027c902db2d1113605d6e6a0faf98f1
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
(cherry picked from commit efb06499a7cb766062ef05f4af6bef250e3fefba)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Viktor Arvidsson 2023-10-27 22:24:18 +02:00 committed by Qt Cherry-pick Bot
parent 2196d3eff7
commit 2e0b58607e

View File

@ -2949,6 +2949,7 @@ bool QApplication::notify(QObject *receiver, QEvent *e)
tablet->tangentialPressure(), tablet->rotation(), tablet->z(),
tablet->modifiers(), tablet->button(), tablet->buttons());
te.m_spont = e->spontaneous();
te.setTimestamp(tablet->timestamp());
te.setAccepted(false);
res = d->notify_helper(w, w == receiver ? tablet : &te);
eventAccepted = ((w == receiver) ? tablet : &te)->isAccepted();