summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qmlcomponent.cpp
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2009-12-02 04:04:23 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2009-12-02 04:04:23 (GMT)
commitc69e21f13d4c3dcd9b8a01c66cd15f64ca0cfcd3 (patch)
treef3a0e27e8e00bdff0c4ce39e03b46cbe383d70d1 /src/declarative/qml/qmlcomponent.cpp
parentf25f00210cf528f017c64d2fe6505ef15f9447f7 (diff)
downloadQt-c69e21f13d4c3dcd9b8a01c66cd15f64ca0cfcd3.zip
Qt-c69e21f13d4c3dcd9b8a01c66cd15f64ca0cfcd3.tar.gz
Qt-c69e21f13d4c3dcd9b8a01c66cd15f64ca0cfcd3.tar.bz2
Run QmlParserStatus::componentComplete() in opposite order
This improves perf when a parent depends on its childrens' size.
Diffstat (limited to 'src/declarative/qml/qmlcomponent.cpp')
-rw-r--r--src/declarative/qml/qmlcomponent.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/qml/qmlcomponent.cpp b/src/declarative/qml/qmlcomponent.cpp
index 5f8b816..85da2c1 100644
--- a/src/declarative/qml/qmlcomponent.cpp
+++ b/src/declarative/qml/qmlcomponent.cpp
@@ -705,7 +705,7 @@ void QmlComponentPrivate::completeCreate()
QmlEnginePrivate::SimpleList<QmlParserStatus> ps =
parserStatus.at(ii);
- for (int jj = 0; jj < ps.count; ++jj) {
+ for (int jj = ps.count - 1; jj >= 0; --jj) {
QmlParserStatus *status = ps.at(jj);
if (status && status->d) {
status->d = 0;