From c69e21f13d4c3dcd9b8a01c66cd15f64ca0cfcd3 Mon Sep 17 00:00:00 2001 From: Aaron Kennedy Date: Wed, 2 Dec 2009 14:04:23 +1000 Subject: Run QmlParserStatus::componentComplete() in opposite order This improves perf when a parent depends on its childrens' size. --- src/declarative/qml/qmlcomponent.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 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; -- cgit v0.12