summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2011-06-03 17:44:52 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2011-06-06 17:46:21 -0300
commit75cffde7e51646e6e5561384caacb4a1932005cf (patch)
treebdcd240156b8c3771a84c526e86a8aeb60b0eee6
parenteca2d705206483d04cfa7b24b51459f3d266f457 (diff)
downloadgeneratorrunner-75cffde7e51646e6e5561384caacb4a1932005cf.tar.gz
generatorrunner-75cffde7e51646e6e5561384caacb4a1932005cf.tar.xz
generatorrunner-75cffde7e51646e6e5561384caacb4a1932005cf.zip
Fix bug 501 - "Shiboken generator doesn't use full qualified name (with :: prefix) on all places."
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
-rw-r--r--generator.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/generator.cpp b/generator.cpp
index d1e89fd..737f596 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();