diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-06-25 07:07:10 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-06-25 07:07:10 (GMT) |
commit | 4b3933bc4d6c5e2ae4507e5df92c6f877e3f621e (patch) | |
tree | af9761cf776b4954deb9d1fdfa82a74e0711be51 /src/declarative/qml/qmlcompiler.cpp | |
parent | 9f020f8a737ee27cf5b7ce4a41e579a6872d9954 (diff) | |
download | Qt-4b3933bc4d6c5e2ae4507e5df92c6f877e3f621e.zip Qt-4b3933bc4d6c5e2ae4507e5df92c6f877e3f621e.tar.gz Qt-4b3933bc4d6c5e2ae4507e5df92c6f877e3f621e.tar.bz2 |
Expose extended type URLs through the QML DOM API
Diffstat (limited to 'src/declarative/qml/qmlcompiler.cpp')
-rw-r--r-- | src/declarative/qml/qmlcompiler.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/declarative/qml/qmlcompiler.cpp b/src/declarative/qml/qmlcompiler.cpp index 8297ac4..cb0c571 100644 --- a/src/declarative/qml/qmlcompiler.cpp +++ b/src/declarative/qml/qmlcompiler.cpp @@ -570,7 +570,10 @@ void QmlCompiler::compileTree(Object *tree) bool QmlCompiler::compileObject(Object *obj, const BindingContext &ctxt) { Q_ASSERT (obj->type != -1); - obj->metatype = output->types.at(obj->type).metaObject(); + const QmlCompiledData::TypeReference &tr = output->types.at(obj->type); + obj->metatype = tr.metaObject(); + if (tr.component) + obj->url = tr.component->url(); if (output->types.at(obj->type).className == "Component") { COMPILE_CHECK(compileComponent(obj, ctxt)); |