qt5base-lts/src
Bradley T. Hughes b7ca6a81db processEvents(WaitForMoreEvents) should return after delivering events
The Cocoa event dispatcher sends timer, socket, and posted events
correctly, but they are not NSEvents, and as such, they do not cause
[NSApp nextEventMatchingMask] to return. When calling processEvents()
with WaitForMoreEvents, but the EventLoopExec flag isn't set, we want to
interrupt the WaitForMoreEvents.

As a result, We should not call wakeUp() at the top of processEvents(),
otherwise we end up shortcutting other event sources. We also do not
need to call QCoreApplication::sendPostedEvents() directly either in
processEvents(), it's the postedEventsSource job to do that.

The interruptLater mechanism is always run when calling processEvents()
directly (not via exec()), which causes problems when testing
processEvents(). Don't use interruptLater unless the modal sessions
change (which is indicated by the cached session pointer being reset
to zero).

Change-Id: Iec2b49a4f306b2702c979522f12a28d0b5fbd0b4
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@nokia.com>
2012-02-03 01:40:24 +01:00
..
3rdparty Remove Symbian specific code in 3rdparty. 2012-02-01 19:06:18 +01:00
corelib Reimplement QIdentityProxyModel::headerData(). 2012-02-03 01:36:45 +01:00
dbus Revert "Put the generated <module>version.h into build tree" 2012-02-01 10:48:09 +01:00
gui Build with -pedantic 2012-02-03 00:24:40 +01:00
modules Remove dependency of QtDBus onto QtXml 2012-01-22 22:10:02 +01:00
network Fix unintended source compatiblity break in QSslSocket 2012-02-02 17:11:37 +01:00
opengl Revert "Put the generated <module>version.h into build tree" 2012-02-01 10:48:09 +01:00
platformsupport Move QString <-> NSString conversion to QtCore 2012-02-02 14:18:36 +01:00
plugins processEvents(WaitForMoreEvents) should return after delivering events 2012-02-03 01:40:24 +01:00
printsupport Windows: Fix inclusion of <windows.h> 2012-02-01 11:06:19 +01:00
sql Various documentation fixes ported from Qt 4.8 2012-02-02 16:03:30 +01:00
testlib Revert "Put the generated <module>version.h into build tree" 2012-02-01 10:48:09 +01:00
tools QtDebug: Include file, line, function information 2012-02-01 02:16:32 +01:00
widgets Make QAbstractItemView::itemOptions properly initialize a V4 option 2012-02-03 01:23:52 +01:00
winmain Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
xml Revert "Put the generated <module>version.h into build tree" 2012-02-01 10:48:09 +01:00
qbase.pri Moved common module profiles to be feature profiles. 2011-06-05 14:47:14 +02:00
qt_install.pri Moved common module profiles to be feature profiles. 2011-06-05 14:47:14 +02:00
qt_targets.pri Moved common module profiles to be feature profiles. 2011-06-05 14:47:14 +02:00
src.pro Remove dependency of QtDBus onto QtXml 2012-01-22 22:10:02 +01:00