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().
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.