aboutsummaryrefslogtreecommitdiffstats
path: root/cppgenerator.cpp
diff options
context:
space:
mode:
authorHugo Lima <hugo.lima@openbossa.org>2010-01-26 19:22:30 -0200
committerHugo Lima <hugo.lima@openbossa.org>2010-01-26 22:15:52 -0200
commitdf3b7134e1ff05fde57e8e3f74835131e34110d4 (patch)
tree37a050de88ed8bcc7340efad5e9ab9506e177fc8 /cppgenerator.cpp
parentb62fe3b11c547f493196e97bceb1601fb1ad73d6 (diff)
Use qualified C++ names on variables inside richComparison functions.
Diffstat (limited to 'cppgenerator.cpp')
-rw-r--r--cppgenerator.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/cppgenerator.cpp b/cppgenerator.cpp
index 8fc1cec0f..eda2e18fc 100644
--- a/cppgenerator.cpp
+++ b/cppgenerator.cpp
@@ -1765,9 +1765,11 @@ void CppGenerator::writeRichCompareFunction(QTextStream& s, const AbstractMetaCl
{
Indentation indent(INDENT);
s << INDENT;
- if (type->typeEntry()->isValue())
- s << type->name() << '*';
- else
+ if (type->typeEntry()->isValue()) {
+ AbstractMetaClass* clz = classes().findClass(type->typeEntry());
+ Q_ASSERT(clz);
+ s << clz->qualifiedCppName() << '*';
+ } else
s << translateTypeForWrapperMethod(type, metaClass);
s << " cpp_other = ";
if (type->typeEntry()->isValue())