Qt 4.8
Public Functions | Properties | List of all members
QTestDelayEvent Class Reference

#include <qtestevent.h>

Inheritance diagram for QTestDelayEvent:
QTestEvent

Public Functions

QTestEventclone () const
 
 QTestDelayEvent (int msecs)
 
void simulate (QWidget *)
 
- Public Functions inherited from QTestEvent
virtual ~QTestEvent ()
 

Properties

int _delay
 

Detailed Description

Definition at line 144 of file qtestevent.h.

Constructors and Destructors

◆ QTestDelayEvent()

QTestDelayEvent::QTestDelayEvent ( int  msecs)
inline

Definition at line 147 of file qtestevent.h.

147 : _delay(msecs) {}

Functions

◆ clone()

QTestEvent* QTestDelayEvent::clone ( ) const
inlinevirtual

Implements QTestEvent.

Definition at line 148 of file qtestevent.h.

148 { return new QTestDelayEvent(*this); }
QTestDelayEvent(int msecs)
Definition: qtestevent.h:147

◆ simulate()

void QTestDelayEvent::simulate ( QWidget )
inlinevirtual

Implements QTestEvent.

Definition at line 150 of file qtestevent.h.

150 { QTest::qWait(_delay); }
static void qWait(int ms)
Waits for ms milliseconds.
Definition: qtestsystem.h:62

Properties

◆ _delay

int QTestDelayEvent::_delay
private

Definition at line 153 of file qtestevent.h.


The documentation for this class was generated from the following file: