aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2009-12-16 14:57:39 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2009-12-16 15:00:21 -0300
commitd90b6ba47409c7cc461bb6c200f8e41b9a917088 (patch)
treedd56f7abadeef27c8e67f19afd9a4ef660c0db99
parent3deada6b7ebad62985850ec436db84b832715003 (diff)
Adds SLOT and SIGNAL global functions to QtCore module.
Reviewed by Hugo Lima <hugo.lima@openbossa.org>
-rw-r--r--PySide/QtCore/typesystem_core.xml12
1 files changed, 11 insertions, 1 deletions
diff --git a/PySide/QtCore/typesystem_core.xml b/PySide/QtCore/typesystem_core.xml
index f9302cbfd..7a5b880dd 100644
--- a/PySide/QtCore/typesystem_core.xml
+++ b/PySide/QtCore/typesystem_core.xml
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<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,
so we need to do a lot of inject code to handle them.
@@ -2528,7 +2528,17 @@
<modify-function signature="enclosingMetaObject()const" remove="all" />
</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."/>