#include <Mocks.h> [code]
Definition at line 109 of file Mocks.h.
Public Member Functions | |
| void | processEvents (int maxTime) |
| Let Qt process queued events. | |
|
|
Let Qt process queued events. This function is usefull when you want to have queued events processed by Qt before you continue with testing. Using the wait() function you could even set expectations for which signals should be emitted by the object under test. The implementation of this function calls QCoreApplication::processEvents() a number of times instead of just once. The reason is that certain queued slots could in effect cause more slots to be queued and we would want them all processed. |