summaryrefslogtreecommitdiffstats
path: root/generator
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2010-10-06 18:53:33 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2010-10-07 14:58:19 -0300
commit5e982a5494a56d53dd3467e438aab6d2a7f08204 (patch)
tree7434f1ba98f72c12a6f63557036b25ad45241efa /generator
parented8481cd7accabe1b9a88aa27101bfe13bb87a62 (diff)
downloadshiboken-5e982a5494a56d53dd3467e438aab6d2a7f08204.tar.gz
shiboken-5e982a5494a56d53dd3467e438aab6d2a7f08204.tar.xz
shiboken-5e982a5494a56d53dd3467e438aab6d2a7f08204.zip
Generate code compatible with new properties function names.
Reviewer: Renato Ara├║jo <renato.filho@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
Diffstat (limited to 'generator')
-rw-r--r--generator/cppgenerator.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/generator/cppgenerator.cpp b/generator/cppgenerator.cpp
index a2186e0e..ef8737a2 100644
--- a/generator/cppgenerator.cpp
+++ b/generator/cppgenerator.cpp
@@ -3488,10 +3488,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::qproperty_get_object(self, name));" << endl;
+ s << INDENT << "Shiboken::AutoDecRef pp(PySide::qpropertyGetObject(self, name));" << endl;
s << INDENT << "if (!pp.isNull())" << endl;
Indentation indent(INDENT);
- s << INDENT << INDENT << "return PySide::qproperty_set(pp, self, value);" << endl;
+ s << INDENT << INDENT << "return PySide::qpropertySet(pp, self, value);" << endl;
}
s << INDENT << "return PyObject_GenericSetAttr(self, name, value);" << endl;
s << '}' << endl;
@@ -3532,7 +3532,7 @@ void CppGenerator::writeGetattroFunction(QTextStream& s, const AbstractMetaClass
s << INDENT << "if (attr && PySide::isQPropertyType(attr)) {" << endl;
{
Indentation indent(INDENT);
- s << INDENT << "PyObject *value = PySide::qproperty_get(attr, self);" << endl;
+ s << INDENT << "PyObject *value = PySide::qpropertyGet(attr, self);" << endl;
s << INDENT << "if (!value)" << endl;
{
Indentation indentation(INDENT);