diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-06-16 04:32:04 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-06-16 04:32:04 (GMT) |
commit | 1e5dd7d82d542527ca9e650f78a5e25b6a3ebc41 (patch) | |
tree | 8dbb71c3feb65c1ad78018bbea27974b8177d66f /src/declarative/qml/qmlengine.cpp | |
parent | c9fd96774ced98da4145259d132a2c305dd3e6a9 (diff) | |
download | Qt-1e5dd7d82d542527ca9e650f78a5e25b6a3ebc41.zip Qt-1e5dd7d82d542527ca9e650f78a5e25b6a3ebc41.tar.gz Qt-1e5dd7d82d542527ca9e650f78a5e25b6a3ebc41.tar.bz2 |
Deferred properties mostly work.
However, they still don't honour the presence of an id property.
Diffstat (limited to 'src/declarative/qml/qmlengine.cpp')
-rw-r--r-- | src/declarative/qml/qmlengine.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/declarative/qml/qmlengine.cpp b/src/declarative/qml/qmlengine.cpp index a43b9b9..36b6424 100644 --- a/src/declarative/qml/qmlengine.cpp +++ b/src/declarative/qml/qmlengine.cpp @@ -71,7 +71,7 @@ #include <qmlcomponent.h> #include "private/qmlmetaproperty_p.h" #include <private/qmlbindablevalue_p.h> - +#include <private/qmlvme_p.h> QT_BEGIN_NAMESPACE @@ -710,7 +710,12 @@ void qmlExecuteDeferred(QObject *object) { QmlInstanceDeclarativeData *data = QmlInstanceDeclarativeData::get(object); - if (data) { + if (data && data->deferredComponent) { + QmlVME vme; + vme.runDeferred(object); + + data->deferredComponent->release(); + data->deferredComponent = 0; } } |