diff options
author | Renato Filho <renato.filho@openbossa.org> | 2011-07-04 10:37:37 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:54:31 -0300 |
commit | f43d92fab4c1ea8818b6886e65427e1e355a249b (patch) | |
tree | cc3cc5958c1ecb2469b2f5938cc33eac87e50b48 /PySide | |
parent | d82b8dbd8d01e0c52491c8b801675acc9bc7a6c9 (diff) |
Fix QUiLoader::load function ownership rules.
fixes bug #909.
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Hugo Parente Lima <hugo.pl@gmail.com>
Diffstat (limited to 'PySide')
-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 130880cf2..9d36d3e50 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() |