diff options
Diffstat (limited to 'typesystem.cpp')
-rw-r--r-- | typesystem.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/typesystem.cpp b/typesystem.cpp index 8808e5314..a08c2df2e 100644 --- a/typesystem.cpp +++ b/typesystem.cpp @@ -45,6 +45,7 @@ Handler::Handler(TypeDatabase* database, bool generate) m_ignoreDepth = 0; tagNames["rejection"] = StackElement::Rejection; + tagNames["custom-type"] = StackElement::CustomTypeEntry; tagNames["primitive-type"] = StackElement::PrimitiveTypeEntry; tagNames["container-type"] = StackElement::ContainerTypeEntry; tagNames["object-type"] = StackElement::ObjectTypeEntry; @@ -629,6 +630,9 @@ bool Handler::startElement(const QString &, const QString &n, } switch (element->type) { + case StackElement::CustomTypeEntry: + element->entry = new TypeEntry(name, TypeEntry::CustomType, since); + break; case StackElement::PrimitiveTypeEntry: { QString targetLangName = attributes["target-lang-name"]; QString targetLangApiName = attributes["target-lang-api-name"]; |