src/gui/statemachine/qmouseeventtransition.h
changeset 3 41300fa6a67c
parent 0 1918ee327afb
child 4 3b1da2848fc7
equal deleted inserted replaced
2:56cd8111b7f7 3:41300fa6a67c
    56 class QPainterPath;
    56 class QPainterPath;
    57 class Q_GUI_EXPORT QMouseEventTransition : public QEventTransition
    57 class Q_GUI_EXPORT QMouseEventTransition : public QEventTransition
    58 {
    58 {
    59     Q_OBJECT
    59     Q_OBJECT
    60     Q_PROPERTY(Qt::MouseButton button READ button WRITE setButton)
    60     Q_PROPERTY(Qt::MouseButton button READ button WRITE setButton)
    61     Q_PROPERTY(Qt::KeyboardModifiers modifiersMask READ modifiersMask WRITE setModifiersMask)
    61     Q_PROPERTY(Qt::KeyboardModifiers modifierMask READ modifierMask WRITE setModifierMask)
    62 public:
    62 public:
    63     QMouseEventTransition(QState *sourceState = 0);
    63     QMouseEventTransition(QState *sourceState = 0);
    64     QMouseEventTransition(QObject *object, QEvent::Type type,
    64     QMouseEventTransition(QObject *object, QEvent::Type type,
    65                           Qt::MouseButton button, QState *sourceState = 0);
    65                           Qt::MouseButton button, QState *sourceState = 0);
    66     ~QMouseEventTransition();
    66     ~QMouseEventTransition();
    67 
    67 
    68     Qt::MouseButton button() const;
    68     Qt::MouseButton button() const;
    69     void setButton(Qt::MouseButton button);
    69     void setButton(Qt::MouseButton button);
    70 
    70 
    71     Qt::KeyboardModifiers modifiersMask() const;
    71     Qt::KeyboardModifiers modifierMask() const;
    72     void setModifiersMask(Qt::KeyboardModifiers modifiers);
    72     void setModifierMask(Qt::KeyboardModifiers modifiers);
    73 
    73 
    74     QPainterPath path() const;
    74     QPainterPath hitTestPath() const;
    75     void setPath(const QPainterPath &path);
    75     void setHitTestPath(const QPainterPath &path);
    76 
    76 
    77 protected:
    77 protected:
    78     void onTransition(QEvent *event);
    78     void onTransition(QEvent *event);
    79     bool eventTest(QEvent *event);
    79     bool eventTest(QEvent *event);
    80 
    80