From ae942fd5dae9e59cae78a32ed598001bf70e523e Mon Sep 17 00:00:00 2001 From: renatofilho Date: Tue, 19 Oct 2010 15:21:23 -0300 Subject: Included QSignalTransition constructor to support Signal objects. Created unit test. Fixes bug #416 Reviewer: Hugo Parente Lima Luciano Wolf --- PySide/QtCore/typesystem_core.xml | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'PySide') diff --git a/PySide/QtCore/typesystem_core.xml b/PySide/QtCore/typesystem_core.xml index e9f5f318a..6f9524be0 100644 --- a/PySide/QtCore/typesystem_core.xml +++ b/PySide/QtCore/typesystem_core.xml @@ -2640,7 +2640,24 @@ - + + + + + + + if (PyObject_TypeCheck(%1, &PySide::SignalInstance_Type)) { + PySide::SignalInstanceData* data = (PySide::SignalInstanceData*) %PYARG_1; + Shiboken::AutoDecRef obType(PyObject_Type(data->source)); + QObject* sender = %CONVERTTOCPP[QObject*](data->source); + if (sender) { + QByteArray signature(data->signature); // Append SIGNAL flag (2) + %0 = new QSignalTransitionWrapper(sender, "2" + signature, %2); + } + } + + + @@ -2663,7 +2680,6 @@ } - -- cgit v1.2.3