aboutsummaryrefslogtreecommitdiffstats
path: root/generator
diff options
context:
space:
mode:
authorrenatofilho <renato.filho@openbossa.org>2010-10-21 13:22:25 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:07:22 -0300
commit0e7ee5e5e6b8db23f793d9aafeab6f8cbdbc77d2 (patch)
treea435274e9668e2a71e46c479b81f234718f7f550 /generator
parentae05cc6213b0d003f668884ed0c0a5b00b3a509e (diff)
Updated code generation to new libpyside API.
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
Diffstat (limited to 'generator')
-rw-r--r--generator/cppgenerator.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/generator/cppgenerator.cpp b/generator/cppgenerator.cpp
index d3300423e..01db203e2 100644
--- a/generator/cppgenerator.cpp
+++ b/generator/cppgenerator.cpp
@@ -2014,7 +2014,7 @@ void CppGenerator::writeMethodCall(QTextStream& s, const AbstractMetaFunction* f
if (func->injectedCodeSnips(CodeSnip::Any, TypeSystem::TargetLangCode).isEmpty()) {
qFatal(qPrintable("No way to call \"" + func->ownerClass()->name()
+ "::" + func->minimalSignature()
- + "\" with the modifications described in the type system file"));
+ + "\" with the modifications described in the type system file"), NULL);
}
} else if (func->isOperatorOverload()) {
QString firstArg("(*" CPP_SELF_VAR ")");
@@ -3535,10 +3535,10 @@ void CppGenerator::writeSetattroFunction(QTextStream& s, const AbstractMetaClass
s << "static int " << cpythonSetattroFunctionName(metaClass) << "(PyObject* self, PyObject* name, PyObject* value)" << endl;
s << '{' << endl;
if (usePySideExtensions()) {
- s << INDENT << "Shiboken::AutoDecRef pp(PySide::qpropertyGetObject(self, name));" << endl;
+ s << INDENT << "Shiboken::AutoDecRef pp(reinterpret_cast<PyObject*>(PySide::qpropertyGetObject(self, name)));" << endl;
s << INDENT << "if (!pp.isNull())" << endl;
Indentation indent(INDENT);
- s << INDENT << INDENT << "return PySide::qpropertySet(pp, self, value);" << endl;
+ s << INDENT << "return PySide::qpropertySet(reinterpret_cast<PySideQProperty*>(pp.object()), self, value);" << endl;
}
s << INDENT << "return PyObject_GenericSetAttr(self, name, value);" << endl;
s << '}' << endl;
@@ -3579,7 +3579,7 @@ void CppGenerator::writeGetattroFunction(QTextStream& s, const AbstractMetaClass
s << INDENT << "if (attr && PySide::isQPropertyType(attr)) {" << endl;
{
Indentation indent(INDENT);
- s << INDENT << "PyObject *value = PySide::qpropertyGet(attr, self);" << endl;
+ s << INDENT << "PyObject *value = PySide::qpropertyGet(reinterpret_cast<PySideQProperty*>(attr), self);" << endl;
s << INDENT << "if (!value)" << endl;
{
Indentation indentation(INDENT);