Go to file
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
bin Revert "Put the generated <module>version.h into build tree" 2012-02-01 10:48:09 +01:00
config.tests Moving tiff image format support and libtiff out of qtbase 2012-01-31 14:31:04 +01:00
dist Merge QStyleOption*V{2,3,4} classes together 2012-02-02 20:18:55 +01:00
doc/src Introduce QItemDelegate::destroyEditor virtual invoked at editor close 2012-02-02 01:56:03 +01:00
examples Fix the chart itemview example 2012-02-03 01:15:52 +01:00
lib Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
mkspecs fix gdb_dwarf_index.prf for applications, take two 2012-02-02 11:10:04 +01:00
qmake Escape path names in qmake-generated Makefiles. 2012-01-31 11:47:11 +01:00
src processEvents(WaitForMoreEvents) should return after delivering events 2012-02-03 01:40:24 +01:00
tests Un-guard a QRawFont autotest. 2012-02-03 01:40:22 +01:00
tools Windows configure: make -mp affect the Qt build itself 2012-02-01 19:02:28 +01:00
util Avoid non-standard indentation of license headers. 2012-01-30 16:40:10 +01:00
.gitattributes Added .tag file with Git revision. 2011-05-03 16:23:49 +02:00
.gitignore Remove references to openvgversion.h 2012-01-14 14:48:16 +01:00
.tag Added .tag file with Git revision. 2011-05-03 16:23:49 +02:00
configure Change syncqt default parameters for shadow building 2012-02-01 02:12:39 +01:00
configure.exe Add a new QT_NO_SSL feature macro. 2012-01-06 11:19:23 +01:00
header.BSD Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
header.FDL Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
header.LGPL Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
header.LGPL-ONLY Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
INSTALL Remove Symbian specific code from qtbase. 2012-01-31 07:08:31 +01:00
LGPL_EXCEPTION.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
LICENSE.FDL Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
LICENSE.LGPL Update contact information in license headers. 2012-01-23 04:04:33 +01:00
LICENSE.PREVIEW.COMMERCIAL Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
qtbase.pro Remove Symbian specific code from qtbase. 2012-01-31 07:08:31 +01:00
sync.profile Remove references to openvgversion.h 2012-01-14 14:48:16 +01:00