summaryrefslogtreecommitdiffstats
path: root/src/corelib/statemachine/qstate.cpp
diff options
context:
space:
mode:
authorKent Hansen <khansen@trolltech.com>2009-04-29 15:03:27 (GMT)
committerKent Hansen <khansen@trolltech.com>2009-04-29 15:06:40 (GMT)
commitb599036b8cf4eda2a12a0127a484dff659e594b8 (patch)
treeff7a811f2198eda7b34adb27f43df8cc37b93b84 /src/corelib/statemachine/qstate.cpp
parent9371a8069c4c0e0a00172980004c967d5dd296fd (diff)
downloadQt-b599036b8cf4eda2a12a0127a484dff659e594b8.zip
Qt-b599036b8cf4eda2a12a0127a484dff659e594b8.tar.gz
Qt-b599036b8cf4eda2a12a0127a484dff659e594b8.tar.bz2
kill QStateMachine::animationsFinished(), introduce QState::polished()
Diffstat (limited to 'src/corelib/statemachine/qstate.cpp')
-rw-r--r--src/corelib/statemachine/qstate.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/corelib/statemachine/qstate.cpp b/src/corelib/statemachine/qstate.cpp
index 173cc8d..2d59ab8 100644
--- a/src/corelib/statemachine/qstate.cpp
+++ b/src/corelib/statemachine/qstate.cpp
@@ -139,6 +139,12 @@ void QStatePrivate::emitFinished()
emit q->finished();
}
+void QStatePrivate::emitPolished()
+{
+ Q_Q(QState);
+ emit q->polished();
+}
+
/*!
Constructs a new state with the given \a parent state.
*/
@@ -222,6 +228,8 @@ QList<QAbstractTransition*> QStatePrivate::transitions() const
/*!
Instructs this state to set the property with the given \a name of the given
\a object to the given \a value when the state is entered.
+
+ \sa polished()
*/
void QState::assignProperty(QObject *object, const char *name,
const QVariant &value)
@@ -444,4 +452,12 @@ bool QState::event(QEvent *e)
This signal is emitted when a final child state of this state is entered.
*/
+/*!
+ \fn QState::polished()
+
+ This signal is emitted when all properties have been assigned their final value.
+
+ \sa QState::assignProperty(), QAbstractTransition::addAnimation()
+*/
+
QT_END_NAMESPACE