summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2009-08-07 03:24:28 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2009-08-07 03:24:28 (GMT)
commitd6843baff3f344de4c63c5559d23595dbf2bdfea (patch)
tree7fb53e8980c988849f9c606c5521f012e4711441
parentfe1165f3647c437528d9df437b939278f23260fc (diff)
downloadQt-d6843baff3f344de4c63c5559d23595dbf2bdfea.zip
Qt-d6843baff3f344de4c63c5559d23595dbf2bdfea.tar.gz
Qt-d6843baff3f344de4c63c5559d23595dbf2bdfea.tar.bz2
Optimization: Use setparent_noevent.
-rw-r--r--src/declarative/util/qmlstategroup.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/util/qmlstategroup.cpp b/src/declarative/util/qmlstategroup.cpp
index 3a07fbe..bb40a8b 100644
--- a/src/declarative/util/qmlstategroup.cpp
+++ b/src/declarative/util/qmlstategroup.cpp
@@ -274,7 +274,7 @@ void QmlStateGroupPrivate::setCurrentStateInternal(const QString &state,
}
if (oldState == 0 || newState == 0) {
- if (!nullState) { nullState = new QmlState(q); }
+ if (!nullState) { nullState = new QmlState; QFx_setParent_noEvent(nullState, q); }
if (!oldState) oldState = nullState;
if (!newState) newState = nullState;
}