aboutsummaryrefslogtreecommitdiffstats
path: root/generator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'generator.cpp')
-rw-r--r--generator.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/generator.cpp b/generator.cpp
index d1e89fd32..737f59655 100644
--- a/generator.cpp
+++ b/generator.cpp
@@ -319,6 +319,8 @@ QString Generator::translateType(const AbstractMetaType *cType,
copyType->setReference(false);
s = copyType->cppSignature();
+ if (!copyType->typeEntry()->isCppPrimitive())
+ s.prepend("::");
delete copyType;
} else {
s = cType->cppSignature();