QBasicMouseEventTransition Class
The QBasicMouseEventTransition class provides a transition for Qt mouse events. More...
Header: | #include <QBasicMouseEventTransition> |
Inherits: | QAbstractTransition |
Public Functions
QBasicMouseEventTransition(QState *sourceState = nullptr) | |
QBasicMouseEventTransition(QEvent::Type type, Qt::MouseButton button, QState *sourceState = nullptr) | |
virtual | ~QBasicMouseEventTransition() |
Qt::MouseButton | button() const |
QEvent::Type | eventType() const |
QPainterPath | hitTestPath() const |
Qt::KeyboardModifiers | modifierMask() const |
void | setButton(Qt::MouseButton button) |
void | setEventType(QEvent::Type type) |
void | setHitTestPath(const QPainterPath &path) |
void | setModifierMask(Qt::KeyboardModifiers modifierMask) |
Reimplemented Protected Functions
virtual bool | eventTest(QEvent *event) override |
virtual void | onTransition(QEvent *) override |
Detailed Description
\internal
\since
4.6 \ingroup
statemachine
Member Function Documentation
QBasicMouseEventTransition::QBasicMouseEventTransition(QState *sourceState = nullptr)
Constructs a new mouse event transition with the given sourceState.
QBasicMouseEventTransition::QBasicMouseEventTransition(QEvent::Type type, Qt::MouseButton button, QState *sourceState = nullptr)
Constructs a new mouse event transition for events of the given type.
[virtual noexcept]
QBasicMouseEventTransition::~QBasicMouseEventTransition()
Destroys this mouse event transition.
Qt::MouseButton QBasicMouseEventTransition::button() const
Returns the button that this mouse event transition checks for.
See also setButton().
[override virtual protected]
bool QBasicMouseEventTransition::eventTest(QEvent *event)
Reimplements: QAbstractTransition::eventTest(QEvent *event).
QEvent::Type QBasicMouseEventTransition::eventType() const
Returns the event type that this mouse event transition is associated with.
See also setEventType().
QPainterPath QBasicMouseEventTransition::hitTestPath() const
Returns the hit test path for this mouse event transition.
See also setHitTestPath().
Qt::KeyboardModifiers QBasicMouseEventTransition::modifierMask() const
Returns the keyboard modifier mask that this mouse event transition checks for.
See also setModifierMask().
[override virtual protected]
void QBasicMouseEventTransition::onTransition(QEvent *)
Reimplements: QAbstractTransition::onTransition(QEvent *event).
void QBasicMouseEventTransition::setButton(Qt::MouseButton button)
Sets the button that this mouse event transition will check for.
See also button().
void QBasicMouseEventTransition::setEventType(QEvent::Type type)
Sets the event type that this mouse event transition is associated with.
See also eventType().
void QBasicMouseEventTransition::setHitTestPath(const QPainterPath &path)
Sets the hit test path for this mouse event transition.
See also hitTestPath().
void QBasicMouseEventTransition::setModifierMask(Qt::KeyboardModifiers modifierMask)
Sets the keyboard modifier mask that this mouse event transition will check for.
See also modifierMask().