The QKeyEventTransition class provides a transition for key events. More...
#include <QKeyEventTransition>
Inherits QEventTransition.
This class was introduced in Qt 4.6.
QKeyEventTransition ( QState * sourceState = 0 ) | |
QKeyEventTransition ( QObject * object, QEvent::Type type, int key, QState * sourceState = 0 ) | |
~QKeyEventTransition () | |
int | key () const |
Qt::KeyboardModifiers | modifierMask () const |
void | setKey ( int key ) |
void | setModifierMask ( Qt::KeyboardModifiers modifierMask ) |
virtual bool | eventTest ( QEvent * event ) |
virtual void | onTransition ( QEvent * event ) |
The QKeyEventTransition class provides a transition for key events.
QKeyEventTransition is part of The State Machine Framework.
See also QState::addTransition().
This property holds the key that this key event transition is associated with.
Access functions:
int | key () const |
void | setKey ( int key ) |
This property holds the keyboard modifier mask that this key event transition checks for.
Access functions:
Qt::KeyboardModifiers | modifierMask () const |
void | setModifierMask ( Qt::KeyboardModifiers modifierMask ) |
Constructs a new key event transition with the given sourceState.
Constructs a new key event transition for events of the given type for the given object, with the given key and sourceState.
Destroys this key event transition.
Reimplemented from QAbstractTransition::eventTest().
Reimplemented from QAbstractTransition::onTransition().