From e0eb744489cfe4914bef235880f8219984d7d43d Mon Sep 17 00:00:00 2001 From: renatofilho Date: Mon, 4 Oct 2010 19:26:42 -0300 Subject: Implemented support to OriginalName flag on typeName function. Reviewer: Hugo Parente Lima Luciano Wolf --- generator.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'generator.cpp') 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"); -- cgit v1.2.3