diff options
author | Kent Hansen <khansen@trolltech.com> | 2009-04-29 08:54:10 (GMT) |
---|---|---|
committer | Kent Hansen <khansen@trolltech.com> | 2009-04-29 08:54:10 (GMT) |
commit | 58b74319a639cb471cdec92c0e8a054fc6d4d5f5 (patch) | |
tree | 6d6bd21ff8c53636cc51eb8a1d17eb2fd00ebed9 /src/gui/statemachine/qkeyeventtransition.h | |
parent | f39a905bc75e7ce95294f3584ea8a400ab383861 (diff) | |
download | Qt-58b74319a639cb471cdec92c0e8a054fc6d4d5f5.zip Qt-58b74319a639cb471cdec92c0e8a054fc6d4d5f5.tar.gz Qt-58b74319a639cb471cdec92c0e8a054fc6d4d5f5.tar.bz2 |
modifiers --> modifiersMask
Result of API review. A == comparison of the modifiers is not useful.
The common case is you want to test if one or more modifiers are set,
i.e. a mask check.
Diffstat (limited to 'src/gui/statemachine/qkeyeventtransition.h')
-rw-r--r-- | src/gui/statemachine/qkeyeventtransition.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/statemachine/qkeyeventtransition.h b/src/gui/statemachine/qkeyeventtransition.h index 5bae8d7..ef814db 100644 --- a/src/gui/statemachine/qkeyeventtransition.h +++ b/src/gui/statemachine/qkeyeventtransition.h @@ -28,6 +28,7 @@ class Q_GUI_EXPORT QKeyEventTransition : public QEventTransition { Q_OBJECT Q_PROPERTY(int key READ key WRITE setKey) + Q_PROPERTY(Qt::KeyboardModifiers modifiersMask READ modifiersMask WRITE setModifiersMask) public: QKeyEventTransition(QState *sourceState = 0); QKeyEventTransition(QObject *object, QEvent::Type type, int key, @@ -40,8 +41,8 @@ public: int key() const; void setKey(int key); - Qt::KeyboardModifiers modifiers() const; - void setModifiers(Qt::KeyboardModifiers modifiers); + Qt::KeyboardModifiers modifiersMask() const; + void setModifiersMask(Qt::KeyboardModifiers modifiers); protected: void onTransition(); |