aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2009-08-21 15:10:59 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2009-08-21 15:10:59 -0300
commit48dd9b112e9ea7bc6c95703cdfd5e8fd269b80b4 (patch)
tree29f84373b9beea1c42c3b8aa00687d154ebc96f2
parent4fca5b868e8b3d982dfa2ceb95806b2a5b2bb639 (diff)
writes correct full qualified C++ names for classes and other components
and also fixes the generated source code file names to follow changes on API Extractor
-rw-r--r--boostpythongenerator.cpp4
-rw-r--r--cppgenerator.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/boostpythongenerator.cpp b/boostpythongenerator.cpp
index 70ce4a5ed..732ef3b65 100644
--- a/boostpythongenerator.cpp
+++ b/boostpythongenerator.cpp
@@ -99,9 +99,9 @@ QString BoostPythonGenerator::translateType(const AbstractMetaType *cType,
return s;
}
-QString BoostPythonGenerator::getWrapperName(const AbstractMetaClass* clazz)
+QString BoostPythonGenerator::getWrapperName(const AbstractMetaClass* metaClass)
{
- QString result = clazz->name().toLower();
+ QString result = metaClass->typeEntry()->qualifiedCppName().toLower();
result.replace("::", "_");
result += "_wrapper";
return result;
diff --git a/cppgenerator.cpp b/cppgenerator.cpp
index ae1f625a8..d99815776 100644
--- a/cppgenerator.cpp
+++ b/cppgenerator.cpp
@@ -949,7 +949,7 @@ void CppGenerator::writeBoostDeclaration(QTextStream& s, const AbstractMetaClass
s << INDENT << "python_cls."
<< strAccess
<< "(\"" << field->name() << "\", &"
- << field->enclosingClass()->name() << "::" << field->name() << ");" << endl;
+ << field->enclosingClass()->typeEntry()->qualifiedCppName() << "::" << field->name() << ");" << endl;
}
}