aboutsummaryrefslogtreecommitdiffstats
path: root/generator
diff options
context:
space:
mode:
authorrenatofilho <renato.filho@openbossa.org>2010-10-29 18:55:51 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:08:55 -0300
commit00d2d31691fe6c9274acfd82382b3f5e8c47db96 (patch)
tree50a3d5dd2b281eb8650c7234947c9a7c89b71c51 /generator
parentdf87d53bfafeeb6cb71f3b4496506d319ab0649d (diff)
Updated code generation to new libpyside files.
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Lauro Neto <lauro.neto@openbossa.org>
Diffstat (limited to 'generator')
-rw-r--r--generator/cppgenerator.cpp12
-rw-r--r--generator/headergenerator.cpp2
2 files changed, 7 insertions, 7 deletions
diff --git a/generator/cppgenerator.cpp b/generator/cppgenerator.cpp
index 428b18480..a44b79c38 100644
--- a/generator/cppgenerator.cpp
+++ b/generator/cppgenerator.cpp
@@ -163,8 +163,8 @@ void CppGenerator::generateClass(QTextStream &s, const AbstractMetaClass *metaCl
s << "// default includes" << endl;
s << "#include <shiboken.h>" << endl;
if (usePySideExtensions()) {
- s << "#include <qsignal.h>" << endl;
- s << "#include <qproperty.h>" << endl;
+ s << "#include <pysidesignal.h>" << endl;
+ s << "#include <pysideproperty.h>" << endl;
s << "#include <pyside.h>" << endl;
}
@@ -3454,10 +3454,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(reinterpret_cast<PyObject*>(PySide::qpropertyGetObject(self, name)));" << endl;
+ s << INDENT << "Shiboken::AutoDecRef pp(reinterpret_cast<PyObject*>(PySide::Property::getObject(self, name)));" << endl;
s << INDENT << "if (!pp.isNull())" << endl;
Indentation indent(INDENT);
- s << INDENT << "return PySide::qpropertySet(reinterpret_cast<PySideQProperty*>(pp.object()), self, value);" << endl;
+ s << INDENT << "return PySide::Property::setValue(reinterpret_cast<PySideProperty*>(pp.object()), self, value);" << endl;
}
s << INDENT << "return PyObject_GenericSetAttr(self, name, value);" << endl;
s << '}' << endl;
@@ -3495,10 +3495,10 @@ void CppGenerator::writeGetattroFunction(QTextStream& s, const AbstractMetaClass
}
s << INDENT << "PyObject* attr = PyObject_GenericGetAttr(self, name);" << endl;
if (usePySideExtensions() && (metaClass->qualifiedCppName() == "QObject")) {
- s << INDENT << "if (attr && PySide::isQPropertyType(attr)) {" << endl;
+ s << INDENT << "if (attr && PySide::Property::isPropertyType(attr)) {" << endl;
{
Indentation indent(INDENT);
- s << INDENT << "PyObject *value = PySide::qpropertyGet(reinterpret_cast<PySideQProperty*>(attr), self);" << endl;
+ s << INDENT << "PyObject *value = PySide::Property::getValue(reinterpret_cast<PySideProperty*>(attr), self);" << endl;
s << INDENT << "if (!value)" << endl;
{
Indentation indentation(INDENT);
diff --git a/generator/headergenerator.cpp b/generator/headergenerator.cpp
index 97cec4b76..ae9c49412 100644
--- a/generator/headergenerator.cpp
+++ b/generator/headergenerator.cpp
@@ -386,7 +386,7 @@ void HeaderGenerator::finishGeneration()
s << "#include <bindingmanager.h>" << endl;
s << "#include <memory>" << endl << endl;
if (usePySideExtensions())
- s << "#include <qsignal.h>" << endl;
+ s << "#include <pysidesignal.h>" << endl;
QStringList requiredTargetImports = TypeDatabase::instance()->requiredTargetImports();
if (!requiredTargetImports.isEmpty()) {