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/qmouseeventtransition.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/qmouseeventtransition.h')
-rw-r--r-- | src/gui/statemachine/qmouseeventtransition.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/statemachine/qmouseeventtransition.h b/src/gui/statemachine/qmouseeventtransition.h index 162b1b5..dbd615f 100644 --- a/src/gui/statemachine/qmouseeventtransition.h +++ b/src/gui/statemachine/qmouseeventtransition.h @@ -29,6 +29,8 @@ class QPainterPath; class Q_GUI_EXPORT QMouseEventTransition : public QEventTransition { Q_OBJECT + Q_PROPERTY(Qt::MouseButton button READ button WRITE setButton) + Q_PROPERTY(Qt::KeyboardModifiers modifiersMask READ modifiersMask WRITE setModifiersMask) public: QMouseEventTransition(QState *sourceState = 0); QMouseEventTransition(QObject *object, QEvent::Type type, @@ -42,6 +44,9 @@ public: Qt::MouseButton button() const; void setButton(Qt::MouseButton button); + Qt::KeyboardModifiers modifiersMask() const; + void setModifiersMask(Qt::KeyboardModifiers modifiers); + QPainterPath path() const; void setPath(const QPainterPath &path); |