aboutsummaryrefslogtreecommitdiffstats
path: root/PySide/QtCore
diff options
context:
space:
mode:
authorHugo Lima <hugo.lima@openbossa.org>2010-02-09 15:27:48 -0200
committerHugo Lima <hugo.lima@openbossa.org>2010-02-09 19:16:24 -0200
commitd54d860e13fb76e96460f9a4268c2649cf8152c4 (patch)
tree624fb02fa465aa955529c63c1962377d70d5616d /PySide/QtCore
parenta8be41f419d9f5e9c57fc0b1069b4b5ed68fbb0f (diff)
Added QtCore.qAbs function.
Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
Diffstat (limited to 'PySide/QtCore')
-rw-r--r--PySide/QtCore/typesystem_core.xml5
1 files changed, 5 insertions, 0 deletions
diff --git a/PySide/QtCore/typesystem_core.xml b/PySide/QtCore/typesystem_core.xml
index 3f02357c5..33f63bc09 100644
--- a/PySide/QtCore/typesystem_core.xml
+++ b/PySide/QtCore/typesystem_core.xml
@@ -796,6 +796,11 @@
<include file-name="QTextDocument" location="global"/>
</extra-includes>
</namespace-type>
+ <add-function signature="qAbs(long)" return-type="long">
+ <inject-code class="target" position="beginning">
+ %PYARG_0 = %CONVERTTOPYTHON[long](qAbs(%1));
+ </inject-code>
+ </add-function>
<enum-type name="QtMsgType"/>
<enum-type name="QSystemSemaphore::AccessMode"/>
<enum-type name="QSystemSemaphore::SystemSemaphoreError"/>