diff options
| author | Tor Arne Vestbø <tor.arne.vestbo@digia.com> | 2013-08-27 12:06:17 +0200 |
|---|---|---|
| committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-09-05 02:32:57 +0200 |
| commit | eb614cf7e73275c6f7b64ae13fb24e41a1dfa88c (patch) | |
| tree | ee24e2bb23928306dc1ac469bf191b74a03315d0 /src/corelib/tools/qscopedpointer.cpp | |
| parent | 78f3f35a8b94e067a647a809003ecc60a3b8ad91 (diff) | |
Don't assume processEvents(WaitForMoreEvents) will process timers
The WaitForMoreEvents flag only guarantees that we will process _some_
events -- either if they are in the event queue already, or by sleeping
and then waking up to process an event. This event might be a system
event, not the timer firing, so a single call to processEvents() is
not enough to guarantee that the timer has fired. Instead we do a
Q_COMPARE with a timeout, where we continiously process events until
we see that the timer fired.
Change-Id: I5dc04377f04190f3505be22e877af73d11b7547d
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/tools/qscopedpointer.cpp')
0 files changed, 0 insertions, 0 deletions
