Utils::CalitkoMocks::SignalWaitHelper Struct Reference

#include <Mocks.h> [code]

List of all members.


Detailed Description

Definition at line 109 of file Mocks.h.

Public Member Functions

void processEvents (int maxTime)
 Let Qt process queued events.


Member Function Documentation

void SignalWaitHelper::processEvents int  maxTime  ) 
 

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.

Definition at line 40 of file Mocks.cpp.


The documentation for this struct was generated from the following files: