diff options
-rw-r--r-- | generator.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/generator.cpp b/generator.cpp index 0f56b450e..e6fbfab51 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"); |