From 2a87b74bfea936691db2eb97a8ab2788277869b6 Mon Sep 17 00:00:00 2001 From: Marcelo Lira Date: Tue, 1 Nov 2011 18:42:47 -0300 Subject: Replaced TypeResolver by SbkConverter and SpecificConverter. Also updated QtGui's WId conversion to Python 3. --- libpyside/globalreceiver.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'libpyside/globalreceiver.cpp') diff --git a/libpyside/globalreceiver.cpp b/libpyside/globalreceiver.cpp index 05d5e4d3..ace1692e 100644 --- a/libpyside/globalreceiver.cpp +++ b/libpyside/globalreceiver.cpp @@ -29,6 +29,7 @@ #include #include #include +#include #include #include "typeresolver.h" @@ -293,8 +294,9 @@ int GlobalReceiver::qt_metacall(QMetaObject::Call call, int id, void** args) QList paramTypes = slot.parameterTypes(); Shiboken::AutoDecRef preparedArgs(PyTuple_New(paramTypes.count())); for (int i = 0, max = paramTypes.count(); i < max; ++i) { - PyObject* arg = Shiboken::TypeResolver::get(paramTypes[i].constData())->toPython(args[i+1]); // Do not increment the reference - PyTuple_SET_ITEM(preparedArgs.object(), i, arg); + const QByteArray& paramType = paramTypes[i]; + Shiboken::Conversions::SpecificConverter converter(paramType.constData()); + PyTuple_SET_ITEM(preparedArgs.object(), i, converter.toPython(args[i+1])); } retval = data->call(preparedArgs); } @@ -306,4 +308,3 @@ int GlobalReceiver::qt_metacall(QMetaObject::Call call, int id, void** args) return -1; } - -- cgit v1.2.3