diff options
author | Martin Jones <martin.jones@nokia.com> | 2010-04-16 05:40:36 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2010-04-16 05:40:36 (GMT) |
commit | 8e71476a262bc3dedaecba29235d19cbe24fa17a (patch) | |
tree | 47d113938d97f3a56d2f701c655403ab3664e430 /src/declarative/qml/qdeclarativecontext.cpp | |
parent | daa12d2d6658924aae22cfbb93cfbc77240f26ba (diff) | |
parent | 34a1a6b5d6399e7bcad136fdaa9a050a0f8bb2dc (diff) | |
download | Qt-8e71476a262bc3dedaecba29235d19cbe24fa17a.zip Qt-8e71476a262bc3dedaecba29235d19cbe24fa17a.tar.gz Qt-8e71476a262bc3dedaecba29235d19cbe24fa17a.tar.bz2 |
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7
Diffstat (limited to 'src/declarative/qml/qdeclarativecontext.cpp')
-rw-r--r-- | src/declarative/qml/qdeclarativecontext.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/declarative/qml/qdeclarativecontext.cpp b/src/declarative/qml/qdeclarativecontext.cpp index 6657fea..5288923 100644 --- a/src/declarative/qml/qdeclarativecontext.cpp +++ b/src/declarative/qml/qdeclarativecontext.cpp @@ -114,7 +114,7 @@ QDeclarativeContextPrivate::QDeclarativeContextPrivate() \endcode All properties added explicitly by QDeclarativeContext::setContextProperty() take - precedence over context object's properties. + precedence over the context object's properties. Contexts form a hierarchy. The root of this heirarchy is the QDeclarativeEngine's \l {QDeclarativeEngine::rootContext()}{root context}. A component instance can @@ -140,6 +140,11 @@ QDeclarativeContextPrivate::QDeclarativeContextPrivate() While QML objects instantiated in a context are not strictly owned by that context, their bindings are. If a context is destroyed, the property bindings of outstanding QML objects will stop evaluating. + + \note Setting the context object or adding new context properties after an object + has been created in that context is an expensive operation (essentially forcing all bindings + to reevaluate). Thus whenever possible you should complete "setup" of the context + before using it to create any objects. */ /*! \internal */ |