44 #ifndef QT_NO_STATEMACHINE 47 #include <QtCore/qstatemachine.h> 48 #include <private/qeventtransition_p.h> 123 delete d->transition;
132 return d->transition->key();
141 d->transition->setKey(key);
151 return d->transition->modifierMask();
161 d->transition->setModifierMask(modifierMask);
173 d->transition->setEventType(we->
event()->
type());
187 #endif //QT_NO_STATEMACHINE
QKeyEventTransition(QState *sourceState=0)
Constructs a new key event transition with the given sourceState.
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 QKeyEventTransition class provides a transition for key events.
QState * sourceState() const
QBasicKeyEventTransition * transition
~QKeyEventTransition()
Destroys this key event transition.
The QObject class is the base class of all Qt objects.
The QBasicKeyEventTransition class provides a transition for Qt key events.
The QState class provides a general-purpose state for QStateMachine.
bool event(QEvent *e)
Reimplemented Function
#define QT_BEGIN_NAMESPACE
This macro expands to.
Qt::KeyboardModifiers modifierMask() const
The QEventTransition class provides a QObject-specific transition for Qt events.
static QAbstractTransitionPrivate * get(QAbstractTransition *q)
QState * sourceState() const
bool eventTest(QEvent *event)
Reimplemented Function
#define Q_DECLARE_PUBLIC(Class)
QKeyEventTransitionPrivate()
Type
This enum type defines the valid event types in Qt.
void onTransition(QEvent *event)
Reimplemented Function
bool eventTest(QEvent *event)
Reimplemented Function
void onTransition(QEvent *event)
Reimplemented Function
void setModifierMask(Qt::KeyboardModifiers modifiers)
Sets the keyboard modifier mask that this key event transition will check for to modifierMask.
bool callEventTest(QEvent *e)
The QEvent class is the base class of all event classes.
Type type() const
Returns the event type.
void setKey(int key)
Sets the key that this key event transition will check for.
QEvent * event() const
Returns a clone of the original event.