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/qbasickeyeventtransition_p.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/qbasickeyeventtransition_p.h')
-rw-r--r-- | src/gui/statemachine/qbasickeyeventtransition_p.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gui/statemachine/qbasickeyeventtransition_p.h b/src/gui/statemachine/qbasickeyeventtransition_p.h index ff52f4d..de49eac 100644 --- a/src/gui/statemachine/qbasickeyeventtransition_p.h +++ b/src/gui/statemachine/qbasickeyeventtransition_p.h @@ -41,7 +41,8 @@ public: QBasicKeyEventTransition(QState *sourceState = 0); QBasicKeyEventTransition(QEvent::Type type, int key, QState *sourceState = 0); QBasicKeyEventTransition(QEvent::Type type, int key, - Qt::KeyboardModifiers modifiers, QState *sourceState = 0); + Qt::KeyboardModifiers modifiersMask, + QState *sourceState = 0); ~QBasicKeyEventTransition(); QEvent::Type eventType() const; @@ -50,8 +51,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: bool eventTest(QEvent *event) const; |