Home

QtKeyEventTransition Class Reference
[QtCore module]

The QtKeyEventTransition class provides a transition for key events. More...

 #include <QtKeyEventTransition>

Inherits QtEventTransition.

Properties

Public Functions

Additional Inherited Members


Detailed Description

The QtKeyEventTransition class provides a transition for key events.

QtKeyEventTransition is part of The State Machine Framework.

See also QtState::addTransition().


Property Documentation

key : int

This property holds the key that this key event transition is associated with.

Access functions:


Member Function Documentation

QtKeyEventTransition::QtKeyEventTransition ( QtState * sourceState = 0 )

Constructs a new key event transition with the given sourceState.

QtKeyEventTransition::QtKeyEventTransition ( QObject * object, QEvent::Type type, int key, QtState * sourceState = 0 )

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

QtKeyEventTransition::QtKeyEventTransition ( QObject * object, QEvent::Type type, int key, const QList<QtAbstractState *> & targets, QtState * sourceState = 0 )

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

QtKeyEventTransition::~QtKeyEventTransition ()

Destroys this key event transition.

Qt::KeyboardModifiers QtKeyEventTransition::modifiers () const

Returns the keyboard modifiers that this key event transition checks for.

See also setModifiers().

void QtKeyEventTransition::setModifiers ( Qt::KeyboardModifiers modifiers )

Sets the keyboard modifiers that this key event transition will check for.

See also modifiers().


Copyright © 2009 Nokia Trademarks
Qt Solutions