qt5base-lts/tests/auto/gui/kernel
Simon Hausmann c4e736cf9d Fix events being processed on application start
Commit ef2efafcc6 introduced a call to
QWindowSystemInterface::sendWindowSystemEvents() in
QGuiApplicationPrivate::init(), which in its implementation ends up calling
sendPostedEvents() before flushing and processing any pending (internal) window
system events.

This patch changes the call in init() to use
QWindowSystemInterface::flushWindowSystemEvents() instead, which is more gentle
in that regard.

The provided unit test verifies that no posted events are processed during the
execution of the QGuiApplication constructor while at the same time verifying
what the original changed tried to do: Allow a generic plugin to provide window
system specific defaults that are implemented using the event queue of
QWindowSystemInterface.

Task-number: QTBUG-26886

Change-Id: I129a907c00d947df60fe1a02efc67857580fce24
Reviewed-by: David Faure <faure@kde.org>
2012-09-26 19:54:19 +02:00
..
qbackingstore Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qclipboard Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qdrag Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qevent Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qfileopenevent Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qguiapplication Fix events being processed on application start 2012-09-26 19:54:19 +02:00
qguieventdispatcher Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qguimetatype Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qguitimer Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qguivariant Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qinputmethod Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qkeysequence Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qmouseevent Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qmouseevent_modal Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qpalette Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qscreen Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qtouchevent Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qwindow Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
kernel.pro Make gui tests build when widgets aren't available 2012-06-07 00:38:01 +02:00