aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlcontext_p.h
diff options
context:
space:
mode:
authorCharles Yin <charles.yin@nokia.com>2012-05-08 10:42:28 +1000
committerQt by Nokia <qt-info@nokia.com>2012-05-09 00:56:16 +0200
commit68b899266ca209d43026376a6cf9d7bbdc3483b8 (patch)
tree0a0d2068c5dcafc2d86883405025db33e00b2373 /src/qml/qml/qqmlcontext_p.h
parent08bafae3a1c148353e3f37f9966b9ecc28ba3a5f (diff)
Better checking top level root object creation status
Add QQmlContextData::isRootObjectInCreation flag, only set it to true in Init qml instruction, once a root ojbect created, set it to false and set QQmlData::rootObjectInCreation to true. Change-Id: Iba7b348ab664a472280d8d7283e93787b3dd0a56 Reviewed-by: Chris Adams <christopher.adams@nokia.com>
Diffstat (limited to 'src/qml/qml/qqmlcontext_p.h')
-rw-r--r--src/qml/qml/qqmlcontext_p.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/qml/qml/qqmlcontext_p.h b/src/qml/qml/qqmlcontext_p.h
index 1f1c6011a2..4eb31177f6 100644
--- a/src/qml/qml/qqmlcontext_p.h
+++ b/src/qml/qml/qqmlcontext_p.h
@@ -148,7 +148,8 @@ public:
quint32 isPragmaLibraryContext:1;
quint32 unresolvedNames:1; // True if expressions in this context failed to resolve a toplevel name
quint32 hasEmittedDestruction:1;
- quint32 dummy:26;
+ quint32 isRootObjectInCreation:1;
+ quint32 dummy:25;
QQmlContext *publicContext;
// VME data that is constructing this context if any