diff options
author | Hugo Lima <hugo.lima@openbossa.org> | 2009-12-17 14:14:18 -0200 |
---|---|---|
committer | Hugo Lima <hugo.lima@openbossa.org> | 2009-12-17 14:14:18 -0200 |
commit | 337f95e404fb25f0035a36aa046fbe51e9af8d18 (patch) | |
tree | 0f4641c94232503fb9a62dfe39a2020c68cb1d43 | |
parent | 9ab2b614214ac925f17818ceda176a543d674fd9 (diff) |
Register object-types with * at end into TypeResolver.
-rw-r--r-- | cppgenerator.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/cppgenerator.cpp b/cppgenerator.cpp index 9d27639ce..3e855d4ff 100644 --- a/cppgenerator.cpp +++ b/cppgenerator.cpp @@ -2136,10 +2136,14 @@ void CppGenerator::writeClassRegister(QTextStream& s, const AbstractMetaClass* m } if (usePySideExtensions() && !metaClass->isNamespace()) { - QString type = metaClass->typeEntry()->isValue() ? "Value" : "Object"; + bool isValueType = metaClass->typeEntry()->isValue(); + QString type = isValueType ? "Value" : "Object"; QString typeName = metaClass->qualifiedCppName(); s << INDENT << "PySide::TypeResolver::create" << type << "TypeResolver<" << typeName << " >"; - s << "(\"" << typeName << "\");\n"; + s << "(\"" << typeName; + if (!isValueType) + s << '*'; + s << "\");\n"; } s << '}' << endl << endl; |