aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qml.pro
diff options
context:
space:
mode:
authorAlbert Astals Cid <albert.astals@canonical.com>2013-09-26 10:56:03 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-10-02 16:07:33 +0200
commitb561a0a4ffa72fe1d43305dce90030d94316924b (patch)
tree1876d08a85da85191d11c69a8c18bdb035e0b1c9 /tests/auto/qml/qml.pro
parent10278163081c25f1b3e659b6769f0635776ab89a (diff)
Always call callCompleted in QQmlDataBlob::tryDone
We need this since it could happen that in QQmlComponentPrivate::loadUrl we did QQmlTypeData *data = QQmlEnginePrivate::get(engine)->typeLoader.getType(url, loaderMode); and got a sync QQmlTypeData even if we asked for async, and thus the async loader was never notified when it finished and we were never loaded. Situation in which this can happen is: * ListView with an async Loader as delegate * Loader loads two items A and B, while A is a B * Item 0 of the ListView triggers an async loading of A that triggers the sync loading of B * Item 1 of the ListView triggers an async loading of B * Since B is already being loaded (though in sync), we just add ourselves to the people that want to be notified * sync loading of B is done and QQmlDataBlob::tryDone does not call the callbacks because it's sync * Item 1 is never finished loading Change-Id: I52a0979a1d3cfcfe73a71196bf24f491d6cf8e9a Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'tests/auto/qml/qml.pro')
-rw-r--r--tests/auto/qml/qml.pro1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/qml/qml.pro b/tests/auto/qml/qml.pro
index 2036f1cd7a..eec6584472 100644
--- a/tests/auto/qml/qml.pro
+++ b/tests/auto/qml/qml.pro
@@ -50,6 +50,7 @@ PRIVATETESTS += \
qqmllistcompositor \
qqmllistmodel \
qqmllistmodelworkerscript \
+ qqmltypeloader \
qqmlparser \
qquickworkerscript \
qqmlbundle \