qt5base-lts/tests/auto/gui/kernel/qguiapplication
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
..
qguiapplication.pro Make tests compile without gui-private 2012-08-02 17:25:37 +02:00
testplugin.json Fix events being processed on application start 2012-09-26 19:54:19 +02:00
tst_qguiapplication.cpp Fix events being processed on application start 2012-09-26 19:54:19 +02:00