qml inspector now shows correct categories for custom properties

Also, a class name is added in qmjs::bind so that we have a class name
for custom properties defined inside a component.
This commit is contained in:
Lasse Holmstedt
2010-04-22 15:44:42 +02:00
parent 26af3a8fae
commit 4d0ac7c77e
5 changed files with 195 additions and 16 deletions

View File

@@ -157,8 +157,10 @@ ObjectValue *Bind::bindObject(UiQualifiedId *qualifiedTypeNameId, UiObjectInitia
if (parentObjectValue)
objectValue->setProperty(QLatin1String("parent"), parentObjectValue);
else
else {
_rootObjectValue = objectValue;
_rootObjectValue->setClassName(_doc->componentName());
}
accept(initializer);