summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/declarative/util/qmlstategroup.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/declarative/util/qmlstategroup.cpp b/src/declarative/util/qmlstategroup.cpp
index ed9221b..3a07fbe 100644
--- a/src/declarative/util/qmlstategroup.cpp
+++ b/src/declarative/util/qmlstategroup.cpp
@@ -134,6 +134,18 @@ void QmlStateGroup::classBegin()
d->componentComplete = false;
}
+void QmlStateGroup::componentComplete()
+{
+ Q_D(QmlStateGroup);
+ d->componentComplete = true;
+ d->updateAutoState();
+ if (!d->currentState.isEmpty()) {
+ QString cs = d->currentState;
+ d->currentState = QString();
+ d->setCurrentStateInternal(cs, true);
+ }
+}
+
void QmlStateGroup::updateAutoState()
{
Q_D(QmlStateGroup);
@@ -270,18 +282,6 @@ void QmlStateGroupPrivate::setCurrentStateInternal(const QString &state,
newState->apply(q, transition, oldState);
}
-void QmlStateGroup::componentComplete()
-{
- Q_D(QmlStateGroup);
- d->updateAutoState();
- d->componentComplete = true;
- if (!d->currentState.isEmpty()) {
- QString cs = d->currentState;
- d->currentState = QString();
- d->setCurrentStateInternal(cs, true);
- }
-}
-
QmlState *QmlStateGroup::findState(const QString &name) const
{
Q_D(const QmlStateGroup);