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:
Alexander Volkov 2014-09-17 16:18:02 +04:00
parent b08b536f20
commit ba46c0eef5

View File

@ -2475,7 +2475,8 @@ void QGuiApplicationPrivate::processTouchEvent(QWindowSystemInterfacePrivate::To
touchPoint.pos(), touchPoint.pos(),
touchPoint.screenPos(), touchPoint.screenPos(),
b | (buttons & ~Qt::LeftButton), b | (buttons & ~Qt::LeftButton),
e->modifiers); e->modifiers,
Qt::MouseEventSynthesizedByQt);
fake.synthetic = true; fake.synthetic = true;
processMouseEvent(&fake); processMouseEvent(&fake);
break; break;