From 2f988d4b65428d03f3e3fee383787106b3f38c35 Mon Sep 17 00:00:00 2001 From: Alan Alpert Date: Wed, 15 May 2013 12:53:11 -0700 Subject: Partial fix for deferred properties when combined with components Current deferred properties implementation did not store context or compiled data pointers correctly. Those pointers are now stored when the defer is reached, so as to avoid confusion (confusion leads to asserts or crashes). Does not extend the deferred property support to allow multiple deferred blocks per item. This now prints and error and the side effect is only that one of the deferred blocks is lost. This use case is sufficiently rare that it may not be worth the cost. Task-number: QTBUG-30325 Change-Id: I80cb074ed4452e95020208a0142a91e721bced7d Reviewed-by: Matthew Vogt Reviewed-by: Lars Knoll --- tests/auto/qml/qqmlecmascript/data/MyDeferredComponent2.qml | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 tests/auto/qml/qqmlecmascript/data/MyDeferredComponent2.qml (limited to 'tests/auto/qml/qqmlecmascript/data/MyDeferredComponent2.qml') diff --git a/tests/auto/qml/qqmlecmascript/data/MyDeferredComponent2.qml b/tests/auto/qml/qqmlecmascript/data/MyDeferredComponent2.qml new file mode 100644 index 0000000000..de73629f7a --- /dev/null +++ b/tests/auto/qml/qqmlecmascript/data/MyDeferredComponent2.qml @@ -0,0 +1,3 @@ +import Qt.test 1.0 + +MyDeferredObject {} -- cgit v1.2.3