diff options
Diffstat (limited to 'abstractmetabuilder.cpp')
-rw-r--r-- | abstractmetabuilder.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/abstractmetabuilder.cpp b/abstractmetabuilder.cpp index 3ebfa59e8..4281b2b62 100644 --- a/abstractmetabuilder.cpp +++ b/abstractmetabuilder.cpp @@ -1266,6 +1266,8 @@ void AbstractMetaBuilder::traverseFunctions(ScopeModelItem scopeItem, AbstractMe // Add the functions added by the typesystem foreach (AddedFunction addedFunc, metaClass->typeEntry()->addedFunctions()) { AbstractMetaFunction* func = traverseFunction(addedFunc); + if (metaClass->isNamespace()) + *func += AbstractMetaFunction::Static; if (func->name() == metaClass->name()) { func->setFunctionType(AbstractMetaFunction::ConstructorFunction); if (func->arguments().size() == 1 && func->arguments().first()->type()->typeEntry()->isCustom()) |