Set a missing source for mouse events synthesized by Qt
Mouse events synthesized from touch events by Qt should be marked as Qt::MouseEventSynthesizedByQt. Change-Id: I73612621a0248440b3b773f1280395c05c55e4aa Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
This commit is contained in:
parent
b08b536f20
commit
ba46c0eef5
@ -2475,7 +2475,8 @@ void QGuiApplicationPrivate::processTouchEvent(QWindowSystemInterfacePrivate::To
|
||||
touchPoint.pos(),
|
||||
touchPoint.screenPos(),
|
||||
b | (buttons & ~Qt::LeftButton),
|
||||
e->modifiers);
|
||||
e->modifiers,
|
||||
Qt::MouseEventSynthesizedByQt);
|
||||
fake.synthetic = true;
|
||||
processMouseEvent(&fake);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user