Commit 12924748 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner.metaSystem: set default property for components

parent 98736d25
......@@ -315,6 +315,9 @@ void SubComponentManagerPrivate::registerQmlFile(const QFileInfo &fileInfo, cons
Q_ASSERT(!dynamicProperty.propertyName().isEmpty());
Q_ASSERT(!dynamicProperty.propertyTypeName().isEmpty());
if (dynamicProperty.isDefaultProperty())
nodeInfo.setDefaultProperty(dynamicProperty.propertyName());
PropertyMetaInfo propertyMetaInfo;
propertyMetaInfo.setName(dynamicProperty.propertyName());
propertyMetaInfo.setType(dynamicProperty.propertyTypeName());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment