Home

QtMouseEventTransition Class Reference
[QtCore module]

The QtMouseEventTransition class provides a transition for mouse events. More...

 #include <QtMouseEventTransition>

Inherits QtEventTransition.

Public Functions

Additional Inherited Members


Detailed Description

The QtMouseEventTransition class provides a transition for mouse events.

QtMouseEventTransition is part of The State Machine Framework.

See also QtState::addTransition().


Member Function Documentation

QtMouseEventTransition::QtMouseEventTransition ( QtState * sourceState = 0 )

Constructs a new mouse event transition with the given sourceState.

QtMouseEventTransition::QtMouseEventTransition ( QObject * object, QEvent::Type type, Qt::MouseButton button, QtState * sourceState = 0 )

Constructs a new mouse event transition for events of the given type for the given object, with the given button and sourceState.

QtMouseEventTransition::QtMouseEventTransition ( QObject * object, QEvent::Type type, Qt::MouseButton button, const QList<QtAbstractState *> & targets, QtState * sourceState = 0 )

Constructs a new mouse event transition for events of the given type for the given object, with the given button, targets and sourceState.

QtMouseEventTransition::~QtMouseEventTransition ()

Destroys this mouse event transition.

Qt::MouseButton QtMouseEventTransition::button () const

Returns the button that this mouse event transition checks for.

See also setButton().

QPainterPath QtMouseEventTransition::path () const

Returns the path for this mouse event transition.

See also setPath().

void QtMouseEventTransition::setButton ( Qt::MouseButton button )

Sets the button that this mouse event transition will check for.

See also button().

void QtMouseEventTransition::setPath ( const QPainterPath & path )

Sets the path for this mouse event transition. If a valid path has been set, the transition will only trigger if the mouse event position (QMouseEvent::pos()) is inside the path.

See also path() and QPainterPath::contains().


Copyright © 2009 Nokia Trademarks
Qt Solutions