diff options
author | Renato Filho <renato.filho@openbossa.org> | 2011-07-12 18:36:06 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:54:35 -0300 |
commit | f62ba98e886475c7936140fae1e5fba1676947a2 (patch) | |
tree | af871ce8d587d6d65fdeec6e28b76137cdc0e81b /PySide/QtCore | |
parent | 9ef344629ad058ff946fd789355acdd6f2b8a68c (diff) |
Fixed QThreadPool globalInstance ownership rules.
Fixed QThreadPool start, tryStart ownership rules.
Fixes bug #927.
Reviewer: Lauro Moura <lauro.neto@openbossa.org>
Hugo Parente <hugo.lima@openbossa.org>
Diffstat (limited to 'PySide/QtCore')
-rw-r--r-- | PySide/QtCore/typesystem_core.xml | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/PySide/QtCore/typesystem_core.xml b/PySide/QtCore/typesystem_core.xml index af06fceb4..3e4e656d8 100644 --- a/PySide/QtCore/typesystem_core.xml +++ b/PySide/QtCore/typesystem_core.xml @@ -2829,7 +2829,24 @@ <include file-name="qtconcurrentthreadengine.h" location="global"/> </extra-includes> </namespace-type> - <object-type name="QThreadPool" /> + <object-type name="QThreadPool"> + <modify-function signature="start(QRunnable*, int)"> + <modify-argument index="1"> + <parent index="this" action="add" /> + </modify-argument> + </modify-function> + <modify-function signature="tryStart(QRunnable*)"> + <modify-argument index="1"> + <parent index="this" action="add" /> + </modify-argument> + </modify-function> + + <modify-function signature="globalInstance()" > + <inject-code position="end"> + Shiboken::Object::releaseOwnership(%PYARG_0); + </inject-code> + </modify-function> + </object-type> <value-type name="QXmlStreamAttribute"/> <value-type name="QXmlStreamAttributes"> <modify-function signature="push_back(QXmlStreamAttribute)" remove="all"/> |