summaryrefslogtreecommitdiffstats
path: root/src/corelib/statemachine/qabstracttransition.cpp
diff options
context:
space:
mode:
authorKent Hansen <khansen@trolltech.com>2009-06-17 08:59:50 (GMT)
committerKent Hansen <khansen@trolltech.com>2009-06-17 09:01:59 (GMT)
commit368c3c936fc12ef5249d72ffa5541df3b8558e4d (patch)
treede8d711c52a67837448b61a3f1b990b841adf0fe /src/corelib/statemachine/qabstracttransition.cpp
parent4cacc45d10e59bb8915b8d76c359df7a8ad0a846 (diff)
downloadQt-368c3c936fc12ef5249d72ffa5541df3b8558e4d.zip
Qt-368c3c936fc12ef5249d72ffa5541df3b8558e4d.tar.gz
Qt-368c3c936fc12ef5249d72ffa5541df3b8558e4d.tar.bz2
bring back QAbstractTransition::triggered() signal
It's been requested by several users. Since we have QAbstractState::{entered,exited}() signals, we should have this one as well.
Diffstat (limited to 'src/corelib/statemachine/qabstracttransition.cpp')
-rw-r--r--src/corelib/statemachine/qabstracttransition.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/corelib/statemachine/qabstracttransition.cpp b/src/corelib/statemachine/qabstracttransition.cpp
index 3be3b73..670aa7d 100644
--- a/src/corelib/statemachine/qabstracttransition.cpp
+++ b/src/corelib/statemachine/qabstracttransition.cpp
@@ -67,6 +67,8 @@ QT_BEGIN_NAMESPACE
targetStates() function returns the targets of the transition. The machine()
function returns the state machine that the transition is part of.
+ The triggered() signal is emitted when the transition has been triggered.
+
Transitions can cause animations to be played. Use the addAnimation()
function to add an animation to the transition.
@@ -139,6 +141,12 @@ QState *QAbstractTransitionPrivate::sourceState() const
return qobject_cast<QState*>(parent);
}
+void QAbstractTransitionPrivate::emitTriggered()
+{
+ Q_Q(QAbstractTransition);
+ emit q->triggered();
+}
+
/*!
Constructs a new QAbstractTransition object with the given \a sourceState.
*/
@@ -333,6 +341,13 @@ QList<QAbstractAnimation*> QAbstractTransition::animations() const
*/
/*!
+ \fn QAbstractTransition::triggered()
+
+ This signal is emitted when the transition has been triggered (after
+ onTransition() has been called).
+*/
+
+/*!
\reimp
*/
bool QAbstractTransition::event(QEvent *e)