summaryrefslogtreecommitdiffstats
path: root/src/corelib/statemachine/qabstracttransition.h
diff options
context:
space:
mode:
authorKent Hansen <khansen@trolltech.com>2009-04-28 12:05:15 (GMT)
committerKent Hansen <khansen@trolltech.com>2009-04-29 06:29:47 (GMT)
commit2c22f8748f62db3cd4c2782abcd19c273f4a4426 (patch)
tree7042ed9d22fc694aca7651d938496a16c369a58e /src/corelib/statemachine/qabstracttransition.h
parent6293521a6e5ee0ce010180a40e6fda3ef3a8b245 (diff)
downloadQt-2c22f8748f62db3cd4c2782abcd19c273f4a4426.zip
Qt-2c22f8748f62db3cd4c2782abcd19c273f4a4426.tar.gz
Qt-2c22f8748f62db3cd4c2782abcd19c273f4a4426.tar.bz2
say hello (again) to QAbstract{State,Transition}::machine()
It's useful and it's simple for us to expose, so let's.
Diffstat (limited to 'src/corelib/statemachine/qabstracttransition.h')
-rw-r--r--src/corelib/statemachine/qabstracttransition.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/corelib/statemachine/qabstracttransition.h b/src/corelib/statemachine/qabstracttransition.h
index c49731f..37365c5 100644
--- a/src/corelib/statemachine/qabstracttransition.h
+++ b/src/corelib/statemachine/qabstracttransition.h
@@ -55,6 +55,7 @@ QT_MODULE(Core)
class QEvent;
class QAbstractState;
class QState;
+class QStateMachine;
#ifndef QT_NO_ANIMATION
class QAbstractAnimation;
@@ -78,6 +79,8 @@ public:
QList<QAbstractState*> targetStates() const;
void setTargetStates(const QList<QAbstractState*> &targets);
+ QStateMachine *machine() const;
+
#ifndef QT_NO_ANIMATION
void addAnimation(QAbstractAnimation *animation);
void removeAnimation(QAbstractAnimation *animation);