summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2010-10-11 14:59:49 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2010-10-11 16:07:53 -0300
commit298b9adfc694feac432f4cc7c747c2f3f2952817 (patch)
treeb1919f740bd86fc53fd7fa20213a6a6de0115cf9
parent5e982a5494a56d53dd3467e438aab6d2a7f08204 (diff)
downloadshiboken-298b9adfc694feac432f4cc7c747c2f3f2952817.tar.gz
shiboken-298b9adfc694feac432f4cc7c747c2f3f2952817.tar.xz
shiboken-298b9adfc694feac432f4cc7c747c2f3f2952817.zip
Qt signals are added to Python wrappers via the PySide::addSignalToWrapper function.
-rw-r--r--generator/cppgenerator.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/generator/cppgenerator.cpp b/generator/cppgenerator.cpp
index ef8737a2..85058820 100644
--- a/generator/cppgenerator.cpp
+++ b/generator/cppgenerator.cpp
@@ -3054,8 +3054,8 @@ void CppGenerator::writeSignalInitialization(QTextStream& s, const AbstractMetaC
foreach(QString signature, signatures[funcName])
s << ", \"" + signature << "\"";
s << ", NULL);" << endl;
- s << INDENT << "PyDict_SetItemString(" + cpythonTypeName(metaClass) + ".super.ht_type.tp_dict";
- s << ", \"" << funcName << "\", signal_item);" << endl;
+ s << INDENT << "PySide::addSignalToWrapper(&" + cpythonTypeName(metaClass) + ", \"";
+ s << funcName << "\", signal_item);" << endl;
s << INDENT << "Py_DECREF(signal_item);" << endl;
}
s << endl;