44 #ifndef QT_NO_STATEMACHINE 159 d->registered =
false;
180 d->registered =
false;
207 if (
d->eventType == type)
230 if (
d->object ==
object)
245 return (we->
object() ==
d->object)
269 #endif //QT_NO_STATEMACHINE
static QEventTransitionPrivate * get(QEventTransition *q)
The WrappedEvent class inherits QEvent and holds a clone of an event associated with a QObject...
#define QT_END_NAMESPACE
This macro expands to.
The QAbstractTransition class is the base class of transitions between QAbstractState objects...
QState * sourceState() const
The QObject class is the base class of all Qt objects.
The QState class provides a general-purpose state for QStateMachine.
QObject * object() const
Returns the object that the event is associated with.
void unregisterEventTransition(QEventTransition *transition)
bool event(QEvent *e)
Reimplemented Function
#define QT_BEGIN_NAMESPACE
This macro expands to.
static QStateMachinePrivate * get(QStateMachine *q)
The QEventTransition class provides a QObject-specific transition for Qt events.
QEventTransitionPrivate()
~QEventTransition()
Destroys this QObject event transition.
QState * sourceState() const
bool eventTest(QEvent *event)
Reimplemented Function
void registerEventTransition(QEventTransition *transition)
QEventTransition(QState *sourceState=0)
Constructs a new QEventTransition object with the given sourceState.
Type
This enum type defines the valid event types in Qt.
QObject * eventSource() const
QStateMachine * machine() const
void onTransition(QEvent *event)
Reimplemented Function
QObject * parent() const
Returns a pointer to the parent object.
bool event(QEvent *e)
Reimplemented Function
void setEventType(QEvent::Type type)
Sets the event type that this event transition is associated with.
void setEventSource(QObject *object)
Sets the event source associated with this event transition to be the given object.
The QEvent class is the base class of all event classes.
Type type() const
Returns the event type.
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
QEvent::Type eventType() const
QEvent * event() const
Returns a clone of the original event.