summaryrefslogtreecommitdiffstats
path: root/src/declarative/graphicsitems/qdeclarativeloader.cpp
diff options
context:
space:
mode:
authorQt Continuous Integration System <qt-info@nokia.com>2010-10-06 04:24:55 (GMT)
committerQt Continuous Integration System <qt-info@nokia.com>2010-10-06 04:24:55 (GMT)
commit8af64342922f05143c41d4804032bd223b89c17e (patch)
tree536a7230d2da0422b1635ecca6e3750a5ad660af /src/declarative/graphicsitems/qdeclarativeloader.cpp
parenteb126c11c72c82baf55f4b62e69cb138f4dce059 (diff)
parent0030599cbe39c9fc7d6f2632b4e66a54b1b46417 (diff)
downloadQt-8af64342922f05143c41d4804032bd223b89c17e.zip
Qt-8af64342922f05143c41d4804032bd223b89c17e.tar.gz
Qt-8af64342922f05143c41d4804032bd223b89c17e.tar.bz2
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7-integration
* '4.7' of scm.dev.nokia.troll.no:qt/qt-qml: Ensure PathView updates positions when path changes. Create Loader components in correct context
Diffstat (limited to 'src/declarative/graphicsitems/qdeclarativeloader.cpp')
-rw-r--r--src/declarative/graphicsitems/qdeclarativeloader.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativeloader.cpp b/src/declarative/graphicsitems/qdeclarativeloader.cpp
index 1066c2b..5647b14 100644
--- a/src/declarative/graphicsitems/qdeclarativeloader.cpp
+++ b/src/declarative/graphicsitems/qdeclarativeloader.cpp
@@ -337,7 +337,9 @@ void QDeclarativeLoaderPrivate::_q_sourceLoaded()
return;
}
- QDeclarativeContext *ctxt = new QDeclarativeContext(qmlContext(q));
+ QDeclarativeContext *creationContext = component->creationContext();
+ if (!creationContext) creationContext = qmlContext(q);
+ QDeclarativeContext *ctxt = new QDeclarativeContext(creationContext);
ctxt->setContextObject(q);
QDeclarativeComponent *c = component;