44 #ifndef QT_NO_STATEMACHINE 47 #include <QtCore/qstatemachine.h> 48 #include <QtGui/qpainterpath.h> 49 #include <private/qeventtransition_p.h> 129 delete d->transition;
138 return d->transition->button();
147 d->transition->setButton(button);
157 return d->transition->modifierMask();
167 d->transition->setModifierMask(modifierMask);
176 return d->transition->hitTestPath();
189 d->transition->setHitTestPath(path);
201 d->transition->setEventType(we->
event()->
type());
215 #endif //QT_NO_STATEMACHINE
QMouseEventTransition(QState *sourceState=0)
Constructs a new mouse event transition with the given sourceState.
The QBasicMouseEventTransition class provides a transition for Qt mouse events.
The WrappedEvent class inherits QEvent and holds a clone of an event associated with a QObject...
#define QT_END_NAMESPACE
This macro expands to.
void onTransition(QEvent *event)
Reimplemented Function
The QPainterPath class provides a container for painting operations, enabling graphical shapes to be ...
QState * sourceState() const
~QMouseEventTransition()
Destroys this mouse event transition.
The QMouseEventTransition class provides a transition for mouse events.
The QObject class is the base class of all Qt objects.
QMouseEventTransitionPrivate()
QPainterPath hitTestPath() const
Returns the hit test path for this mouse event transition.
The QState class provides a general-purpose state for QStateMachine.
bool event(QEvent *e)
Reimplemented Function
#define QT_BEGIN_NAMESPACE
This macro expands to.
The QEventTransition class provides a QObject-specific transition for Qt events.
static QAbstractTransitionPrivate * get(QAbstractTransition *q)
Qt::KeyboardModifiers modifierMask() const
QState * sourceState() const
bool eventTest(QEvent *event)
Reimplemented Function
QBasicMouseEventTransition * transition
void setHitTestPath(const QPainterPath &path)
Sets the hit test path for this mouse event transition to path.
#define Q_DECLARE_PUBLIC(Class)
Type
This enum type defines the valid event types in Qt.
void onTransition(QEvent *event)
Reimplemented Function
void setButton(Qt::MouseButton button)
Sets the button that this mouse event transition will check for.
bool callEventTest(QEvent *e)
Qt::MouseButton button() const
The QEvent class is the base class of all event classes.
Type type() const
Returns the event type.
bool eventTest(QEvent *event)
Reimplemented Function
QEvent * event() const
Returns a clone of the original event.
void setModifierMask(Qt::KeyboardModifiers modifiers)
Sets the keyboard modifier mask that this mouse event transition will check for to modifierMask...