QKeyEventTransition Class Reference
|
| 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().
| Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies) | Trademarks | Qt 4.6.0 |
|
Попытка перевода Qt документации. Если есть желание присоединиться, или если есть замечания или пожелания, то заходите на форум: Перевод Qt документации на русский язык... Люди внесшие вклад в перевод: Команда переводчиков |