Deliver events in qtestmouse
authorLaszlo Agocs <laszlo.p.agocs@nokia.com>
Mon, 12 Mar 2012 08:48:08 +0000 (10:48 +0200)
committerQt by Nokia <qt-info@nokia.com>
Tue, 13 Mar 2012 20:11:55 +0000 (21:11 +0100)
commit268f41ec70fd70d4aa44a5043d1a4e678df4c5b5
tree034661d6812acc191b4618eb065b1e871c0ce273
parent02d75eaaf9f2e4984f39b1e081e841966d1dde0c
Deliver events in qtestmouse

Not waiting until the QPA event queue is processed after
handleMouseEvent() is wrong. Unlike the synchronous sendEvent() calls
these tests most likely utilized earlier, many of the
QWindowSystemInterace functions are asynchronous in the sense that they
just queue the event, delivery will happen when the event dispatcher on
the main thread gets there.

Change-Id: I8197d2dc4805cda684a8279ceb8d4b317f19aba7
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
src/testlib/qtestmouse.h