Incubators are not async with the threaded renderer.
authorMartin Jones <martin.jones@nokia.com>
Mon, 27 Feb 2012 05:54:16 +0000 (15:54 +1000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 28 Feb 2012 00:42:05 +0000 (01:42 +0100)
commitf2c5c77777b61c8fe54a1107e67283d576301a69
tree9fcd6dc0cf9536c6a6efa57dd007d2e536f78e86
parent0bf62c44ab5bc53162ef0d7efea38764e2df8318
Incubators are not async with the threaded renderer.

The threaded incubator relies on the event loop spinning to signal
item updates.  This change ensures that the event loop is processed
while items are being created and that the render loop is woken
if it is sleeping.

Also cancel delegate incubation correctly during destruction.

Change-Id: Ib5bb55c788411490e0959c75933da587fdfd4b8c
Reviewed-by: Yunqiao Yin <charles.yin@nokia.com>
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
src/declarative/qml/qdeclarativeincubator.cpp
src/declarative/qml/qdeclarativeincubator.h
src/declarative/qml/qdeclarativevme_p.h
src/quick/items/qquickcanvas.cpp
src/quick/items/qquickitemview.cpp
src/quick/items/qquickvisualdatamodel.cpp
src/quick/items/qquickvisualdatamodel_p.h
src/quick/items/qquickvisualitemmodel_p.h
src/quick/items/qquickwindowmanager.cpp
src/quick/items/qquickwindowmanager_p.h