summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--generator.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/generator.cpp b/generator.cpp
index 0f56b45..e6fbfab 100644
--- a/generator.cpp
+++ b/generator.cpp
@@ -293,7 +293,10 @@ QString Generator::translateType(const AbstractMetaType *cType,
else
s = cType->cppSignature();
} else {
- s = cType->cppSignature();
+ if (options & Generator::OriginalName)
+ s = cType->originalTypeDescription();
+ else
+ s = cType->cppSignature();
if (cType->isConstant() && (options & Generator::ExcludeConst)) {
// Remove just the first ‘const’, avoiding removal of template attr.
int pos = s.indexOf("const");