diff options
author | Renato Filho <renato.filho@openbossa.org> | 2011-07-04 10:37:37 -0300 |
---|---|---|
committer | Renato Filho <renato.filho@openbossa.org> | 2011-07-04 19:27:55 -0300 |
commit | 07285f0d283d5e8f729fbeef27550f1770e497a8 (patch) | |
tree | 9445674e30ea8a3d38cddf2025d032d6d21fa3a2 | |
parent | 51ea3a52305f4c0726c9d285fc5a987d9a13471c (diff) | |
download | pyside-07285f0d283d5e8f729fbeef27550f1770e497a8.tar.gz pyside-07285f0d283d5e8f729fbeef27550f1770e497a8.tar.xz pyside-07285f0d283d5e8f729fbeef27550f1770e497a8.zip |
Fix QUiLoader::load function ownership rules.
fixes bug #909.
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Hugo Parente Lima <hugo.pl@gmail.com>
-rw-r--r-- | PySide/QtUiTools/typesystem_uitools.xml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/PySide/QtUiTools/typesystem_uitools.xml b/PySide/QtUiTools/typesystem_uitools.xml index 130880c..9d36d3e 100644 --- a/PySide/QtUiTools/typesystem_uitools.xml +++ b/PySide/QtUiTools/typesystem_uitools.xml @@ -102,7 +102,8 @@ <rename to="parentWidget" /> </modify-argument> <modify-argument index="return"> - <parent index="2" action="add"/> + <define-ownership class="target" owner="target"/> + <parent index="2" action="add" /> </modify-argument> <inject-code> // Avoid calling the original function: %CPPSELF.%FUNCTION_NAME() @@ -120,7 +121,8 @@ <rename to="parentWidget" /> </modify-argument> <modify-argument index="return"> - <parent index="2" action="add"/> + <define-ownership class="target" owner="target"/> + <parent index="2" action="add" /> </modify-argument> <inject-code> // Avoid calling the original function: %CPPSELF.%FUNCTION_NAME() |