diff options
author | renatofilho <renato.filho@openbossa.org> | 2010-10-04 19:26:42 -0300 |
---|---|---|
committer | renatofilho <renato.filho@openbossa.org> | 2010-10-05 10:20:19 -0300 |
commit | e0eb744489cfe4914bef235880f8219984d7d43d (patch) | |
tree | e3954450e52d2bcaa10dd2a9c522ddbf0ffcbd33 | |
parent | 67da904f47c450ce5e5c5cd037680d002035549f (diff) |
Implemented support to OriginalName flag on typeName function.
Reviewer: Hugo Parente Lima <hugo.pl@gmail.com>
Luciano Wolf <luciano.wolf@openbossa.org>
-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"); |