qmldump: Dump attached types and read them in Creator.

This commit is contained in:
Christian Kamm
2011-02-10 14:46:03 +01:00
parent 047ed35579
commit 13f9135827
5 changed files with 88 additions and 4 deletions

View File

@@ -158,8 +158,10 @@ void TypeDescriptionReader::readComponent(UiObjectDefinition *ast)
fmo->setDefaultPropertyName(readStringBinding(script));
} else if (name == "exports") {
readExports(script, fmo);
} else if (name == "attachedType") {
fmo->setAttachedTypeName(readStringBinding(script));
} else {
addError(script->firstSourceLocation(), "Expected only name, prototype, defaultProperty and exports script bindings");
addError(script->firstSourceLocation(), "Expected only name, prototype, defaultProperty, attachedType and exports script bindings");
return;
}
} else {