aboutsummaryrefslogtreecommitdiffstats
path: root/PySide/QtCore
diff options
context:
space:
mode:
authorLauro Neto <lauro.neto@openbossa.org>2010-02-08 15:29:58 -0300
committerHugo Lima <hugo.lima@openbossa.org>2010-02-09 19:17:02 -0200
commitfad2f7e53de6274027637b6b61858fb825f6616f (patch)
tree0519d186cfe411be19b9a7b26dc7e3377c27b99b /PySide/QtCore
parentd54d860e13fb76e96460f9a4268c2649cf8152c4 (diff)
Adding support for connect(obj, signal, slot)
window.connect(button, SIGNAL('clicked()'), SLOT('close()') should connect button.clicked to window.close
Diffstat (limited to 'PySide/QtCore')
-rw-r--r--PySide/QtCore/typesystem_core.xml5
1 files changed, 4 insertions, 1 deletions
diff --git a/PySide/QtCore/typesystem_core.xml b/PySide/QtCore/typesystem_core.xml
index 33f63bc09..63f67fac9 100644
--- a/PySide/QtCore/typesystem_core.xml
+++ b/PySide/QtCore/typesystem_core.xml
@@ -1447,7 +1447,10 @@
</modify-argument>
</modify-function>
<modify-function signature="thread() const" remove="all"/>
- <modify-function signature="connect(const QObject*, const char*, const char *, Qt::ConnectionType) const" remove="all"/>
+ <modify-function signature="connect(const QObject*, const char*, const char *, Qt::ConnectionType) const">
+ // %FUNCTION_NAME() - disable generation of function call.
+ %PYARG_0 = %CONVERTTOPYTHON[bool](qobjectConnect(%1, %2, %CPPSELF, %4));
+ </modify-function>
<modify-function signature="connect(const QObject*, const char*, const QObject*, const char *, Qt::ConnectionType)">
<inject-code class="target" position="beginning" file="">
// %FUNCTION_NAME() - disable generation of function call.