Adds SLOT and SIGNAL global functions to QtCore module.

Reviewed by Hugo Lima <hugo.lima@openbossa.org>
This commit is contained in:
Marcelo Lira 2009-12-16 14:57:39 -03:00
commit d90b6ba474

View file

@ -1,6 +1,6 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<typesystem package="PySide.QtCore"> <typesystem package="PySide.QtCore">
<load-typesystem name="typesystem_templates.xml" generate="no"/> <load-typesystem name="typesystem_templates.xml" generate="no"/>
<!-- <!--
Stream manipulators does not fits into python language, Stream manipulators does not fits into python language,
so we need to do a lot of inject code to handle them. so we need to do a lot of inject code to handle them.
@ -2528,7 +2528,17 @@
<modify-function signature="enclosingMetaObject()const" remove="all" /> <modify-function signature="enclosingMetaObject()const" remove="all" />
</value-type> </value-type>
<add-function signature="SIGNAL(const char*)" return-type="PyString*">
<inject-code class="target" position="beginning">
%PYARG_0 = PyString_FromFormat("2%s", QMetaObject::normalizedSignature(%1).constData());
</inject-code>
</add-function>
<add-function signature="SLOT(const char*)" return-type="PyString*">
<inject-code class="target" position="beginning">
%PYARG_0 = PyString_FromFormat("1%s", QMetaObject::normalizedSignature(%1).constData());
</inject-code>
</add-function>
<suppress-warning text="signature 'contais(QXmlStreamAttribute)' for function modification in 'QXmlStreamAttributes' not found."/> <suppress-warning text="signature 'contais(QXmlStreamAttribute)' for function modification in 'QXmlStreamAttributes' not found."/>