diff options
author | Renato Filho <renato.filho@openbossa.org> | 2010-09-08 19:32:33 -0300 |
---|---|---|
committer | Renato Filho <renato.filho@openbossa.org> | 2010-09-08 19:39:31 -0300 |
commit | 63cacc4411cd52e359e1867532524ee816248b61 (patch) | |
tree | 99d52fcf0992c694299d9b9e9347c06b5e34c041 /PySide/QtCore/typesystem_core.xml | |
parent | 6daa2edea54d10e761d0432137373f226f2613ca (diff) |
Created module shutdown function necessary to avoid call python functions before module exit.
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
Hugo Parente Lima <hugo.pl@gmail.com>
Diffstat (limited to 'PySide/QtCore/typesystem_core.xml')
-rw-r--r-- | PySide/QtCore/typesystem_core.xml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/PySide/QtCore/typesystem_core.xml b/PySide/QtCore/typesystem_core.xml index 1e7d18329..8fdb0e5fd 100644 --- a/PySide/QtCore/typesystem_core.xml +++ b/PySide/QtCore/typesystem_core.xml @@ -520,6 +520,7 @@ <include file-name="QTextDocument" location="global"/> </extra-includes> </namespace-type> + <add-function signature="qAbs(double)" return-type="double"> <inject-code class="target" position="beginning"> %PYARG_0 = %CONVERTTOPYTHON[double](qAbs(%1)); @@ -531,6 +532,12 @@ PyModule_AddStringConstant(module, "QT_VERSION_STR", QT_VERSION_STR); </inject-code> + <add-function signature="__moduleShutdown()"> + <inject-code class="target" position="beginning"> + PySide::SignalManager::instance().clear(); + </inject-code> + </add-function> + <enum-type name="QtMsgType"/> <enum-type name="QSystemSemaphore::AccessMode"/> <enum-type name="QSystemSemaphore::SystemSemaphoreError"/> |