Restore Qt 4.6 behaviour: exec() always enters the event loop.
authorThiago Macieira <thiago.macieira@nokia.com>
Thu, 27 Jan 2011 10:49:49 +0000 (11:49 +0100)
committerThiago Macieira <thiago.macieira@nokia.com>
Thu, 27 Jan 2011 13:57:43 +0000 (14:57 +0100)
commit2e72a8b19ea6c674fb4777860dac50faa5d387e6
treee5c684f88671eee9a09a83e7374c1227d7d577ac
parentbd6c9225328b6042ff14dfddb28e2e1279ba0e46
Restore Qt 4.6 behaviour: exec() always enters the event loop.

In Qt 4.6 as well as 4.7's QCoreApplication and QEventLoop, calling
exec() always enters the event loop, even if you had tried to
quit()/exit() it before entering, with one exception (noted in the
unit tests; this difference has been in Qt since at least Qt 4.2).

Add unit tests to ensure all of the three classes have the same
behaviour.

Decide if we want to match the behaviours in Qt 4.8.

Reviewed-by: Bradley T. Hughes
src/corelib/thread/qthread.cpp
tests/auto/qcoreapplication/tst_qcoreapplication.cpp
tests/auto/qeventloop/tst_qeventloop.cpp
tests/auto/qthread/tst_qthread.cpp