Qt 4.8
|
The WrappedEvent class inherits QEvent and holds a clone of an event associated with a QObject. More...
#include <qstatemachine.h>
Public Functions | |
QEvent * | event () const |
Returns a clone of the original event. More... | |
QObject * | object () const |
Returns the object that the event is associated with. More... | |
WrappedEvent (QObject *object, QEvent *event) | |
Constructs a new WrappedEvent object with the given object and event. More... | |
~WrappedEvent () | |
Destroys this WrappedEvent. More... | |
Public Functions inherited from QEvent | |
void | accept () |
Sets the accept flag of the event object, the equivalent of calling setAccepted(true). More... | |
void | ignore () |
Clears the accept flag parameter of the event object, the equivalent of calling setAccepted(false). More... | |
bool | isAccepted () const |
QEvent (Type type) | |
Contructs an event object of type type. More... | |
void | setAccepted (bool accepted) |
bool | spontaneous () const |
Returns true if the event originated outside the application (a system event); otherwise returns false. More... | |
Type | type () const |
Returns the event type. More... | |
virtual | ~QEvent () |
Destroys the event. More... | |
Properties | |
QEvent * | m_event |
QObject * | m_object |
The WrappedEvent class inherits QEvent and holds a clone of an event associated with a QObject.
A wrapped event is generated by a QStateMachine in response to a Qt event. The QEventTransition class provides a transition associated with a such an event. QStateMachine::WrappedEvent is part of The State Machine Framework.
The object() function returns the object that generated the event. The event() function returns a clone of the original event.
Definition at line 92 of file qstatemachine.h.
Constructs a new WrappedEvent object with the given object and event.
The WrappedEvent object takes ownership of event.
Definition at line 2452 of file qstatemachine.cpp.
QStateMachine::WrappedEvent::~WrappedEvent | ( | ) |
|
inline |
Returns a clone of the original event.
Definition at line 99 of file qstatemachine.h.
Referenced by QEventTransition::eventTest(), QKeyEventTransition::eventTest(), and QMouseEventTransition::eventTest().
|
inline |
Returns the object that the event is associated with.
Definition at line 98 of file qstatemachine.h.
Referenced by QEventTransition::eventTest().
|
private |
Definition at line 103 of file qstatemachine.h.
Referenced by ~WrappedEvent().
|
private |
Definition at line 102 of file qstatemachine.h.