From c06110168c39e5c44b9b11ff13fd6f9795199df3 Mon Sep 17 00:00:00 2001 From: Marcelo Lira Date: Thu, 16 Sep 2010 11:36:32 -0300 Subject: Fixes bug #348 adding the method QState.addTransition(Signal, QAbstractTransition*). MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed by Luciano Wolf Reviewed by Renato Araújo --- PySide/QtCore/typesystem_core.xml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'PySide/QtCore') diff --git a/PySide/QtCore/typesystem_core.xml b/PySide/QtCore/typesystem_core.xml index 073da0021..4d7e3e4f7 100644 --- a/PySide/QtCore/typesystem_core.xml +++ b/PySide/QtCore/typesystem_core.xml @@ -2380,6 +2380,26 @@ + + + + + + + // Obviously the label used by the following goto is a very awkward solution, + // since it refers to a name very tied to the generator implementation. + // Check bug #362 for more information on this + // http://bugs.openbossa.org/show_bug.cgi?id=362 + if (!PyObject_TypeCheck(%1, &PySide::SignalInstance_Type)) + goto Sbk%TYPEFunc_%FUNCTION_NAME_TypeError; + PySide::SignalInstanceData* signalInstance = reinterpret_cast<PySide::SignalInstanceData*>(%1); + QObject* sender = %CONVERTTOCPP[QObject*](signalInstance->source); + %PYARG_0 = %CONVERTTOPYTHON[QSignalTransition*](%CPPSELF->%FUNCTION_NAME(sender, signalInstance->signature, %2)); + + + -- cgit v1.2.3