qt5base-lts/tests/auto
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
..
cmake Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
compilerwarnings/data Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
concurrent Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
corelib Test: tst_QFile::writeLargeDataBlock() unstable failure as XFAIL 2012-09-26 10:08:59 +02:00
dbus Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
gui Fix events being processed on application start 2012-09-26 19:54:19 +02:00
guiapplauncher Update the documentation after moving examples. 2011-07-05 21:19:08 +02:00
network Fix MinGW/gcc warning about NOMINMAX being redefined 2012-09-26 10:08:59 +02:00
opengl Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
other Remove duplicate words and punctuation from documentation. 2012-09-26 04:03:20 +02:00
printsupport QtPrintSupport: allow slight deviations from pre-defined paper sizes in tests 2012-09-26 10:08:59 +02:00
shared Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
sql Remove duplicate words and punctuation from documentation. 2012-09-26 04:03:20 +02:00
testlib Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
tools Test case for moc handling defines 2012-09-25 00:08:16 +02:00
widgets [QTBUG-27308][QTBUG-21534] Don't mouse-wheel-scroll QScrollBar when disabled 2012-09-26 19:06:47 +02:00
xml Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
auto.pro Test: Redo remove QSKIP from printsupport tests 2012-09-13 19:33:08 +02:00
network-settings.h Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
platformquirks.h Auto tests: remove PlatformQuirks::isAutoMaximizing() 2012-09-26 10:08:59 +02:00
test.pl Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00