diff options
author | Lauro Neto <lauro.neto@openbossa.org> | 2010-01-08 14:47:04 -0300 |
---|---|---|
committer | Hugo Lima <hugo.lima@openbossa.org> | 2010-01-13 14:30:56 -0200 |
commit | 4141123993bd6bcb52eae3db97d07317e33f4938 (patch) | |
tree | 1b7af1466715b63ee09b47c95eb21ac6ae631acd /PySide/QtCore | |
parent | 6218b0b4de365615c31cf97be092e2c1a21a4100 (diff) |
Add parent tag to QObject.metaObject
Placeholder until the heuristic for turning unmanaged
pointers returned into children of the method owner is
implemented.
Was failing in calls like QObject().metaObject().methodName(),
as the QObject is decref'ed by the stack right after the methodName
bound method is put into the stack. (CPython specific)
Diffstat (limited to 'PySide/QtCore')
-rw-r--r-- | PySide/QtCore/typesystem_core.xml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/PySide/QtCore/typesystem_core.xml b/PySide/QtCore/typesystem_core.xml index 76f0414c1..ccbf03517 100644 --- a/PySide/QtCore/typesystem_core.xml +++ b/PySide/QtCore/typesystem_core.xml @@ -1306,6 +1306,9 @@ <inject-code class="target" position="beginning"> %PYARG_0 = %CONVERTTOPYTHON[%RETURN_TYPE](%CPPSELF.%FUNCTION_NAME()); </inject-code> + <modify-argument index="return"> + <parent index="this" action="add"/> + </modify-argument> </modify-function> <modify-function signature="deleteLater()"> <modify-argument index="this"> |