qt5base-lts/tests/auto/widgets
Friedemann Kleint 5b49793d80 Implement synchronous WS events by flushing.
Previously synchronous window system events were
implemented by bypassing the queue and processing
the event immediately. This is not ideal since the
event order is not preserved - there might be "happened
before" events waiting in the queue.

Add QWindowSystemInterface::flushWindowSystemEvents
and change all handleSynchronous* to 1) queue the
event 2) call flushWindowSystemEvents.

flushWindowSystemEvents is almost identical to the
already existing sendWindowSystemEvents with the
exception that it does not call QApp::sendPostedEvents.
Move the common implementation to a new private function.

Task-number: QTBUG-20778

Change-Id: Ie98a83875bc0a14e335e36bed0dd9e0ed4a1dea0
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
2012-07-31 20:25:36 +02:00
..
dialogs Remove usage of deprecated qWaitForWindowShown in dialog tests. 2012-07-24 00:08:28 +02:00
effects Implement waitForWindowExposed and friends for widget windows. 2012-07-20 09:27:28 +02:00
graphicsview Deprecate the qWaitForWindowShown(QWindow *) method. 2012-07-25 07:24:49 +02:00
itemviews Stabilize the QHeaderView test. 2012-07-31 11:57:21 +02:00
kernel Implement synchronous WS events by flushing. 2012-07-31 20:25:36 +02:00
styles Remove usage of deprecated qWaitForWindowShown(QWidget *) method. 2012-07-25 17:32:21 +02:00
util Stabilize tst_QCompleter::QTBUG_14292_filesystem. 2012-07-26 15:12:55 +02:00
widgets Stabilize tst_QMenu::tearOff(). 2012-07-26 15:13:03 +02:00
widgets.pro Moved tests into integrationtests/ and widgets/ 2011-10-20 19:45:41 +02:00