summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qmlcompiler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/declarative/qml/qmlcompiler.cpp')
-rw-r--r--src/declarative/qml/qmlcompiler.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/declarative/qml/qmlcompiler.cpp b/src/declarative/qml/qmlcompiler.cpp
index 8990732..5f92721 100644
--- a/src/declarative/qml/qmlcompiler.cpp
+++ b/src/declarative/qml/qmlcompiler.cpp
@@ -862,6 +862,10 @@ bool QmlCompiler::compileProperty(Property *prop, Object *obj, int ctxt)
prop->type = t;
}
}
+ } else if(isAttachedProperty(prop->name) && prop->value) {
+ QmlType *type = QmlMetaType::qmlType(prop->name);
+ if (type && type->attachedPropertiesType())
+ prop->value->metatype = type->attachedPropertiesType();
}
if (prop->name == "id") {