summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2011-06-16 19:27:00 -0300
committerRenato Filho <renato.filho@openbossa.org>2011-06-17 11:24:28 -0300
commitaa9e8ca7efc026238b0b7c75b166dc568b69bef4 (patch)
tree8faaaff2d9fde977ea0f845984eb9a98cb130fc2
parentdb40ec67b10e50310dea7d8b9a1bb5c734c232ba (diff)
downloadpyside-aa9e8ca7efc026238b0b7c75b166dc568b69bef4.tar.gz
pyside-aa9e8ca7efc026238b0b7c75b166dc568b69bef4.tar.xz
pyside-aa9e8ca7efc026238b0b7c75b166dc568b69bef4.zip
Fixed QWidget.parentWidget return policy.
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Hugo Parente Lima <hugo.pl@gmail.com>
-rw-r--r--PySide/QtGui/typesystem_gui_common.xml12
1 files changed, 9 insertions, 3 deletions
diff --git a/PySide/QtGui/typesystem_gui_common.xml b/PySide/QtGui/typesystem_gui_common.xml
index 815bf73..d3473d4 100644
--- a/PySide/QtGui/typesystem_gui_common.xml
+++ b/PySide/QtGui/typesystem_gui_common.xml
@@ -2972,6 +2972,9 @@
<modify-argument index="this">
<parent index="return" action="add"/>
</modify-argument>
+ <modify-argument index="return">
+ <define-ownership class="target" owner="default"/>
+ </modify-argument>
</modify-function>
<modify-function signature="takeAt(int)">
@@ -3833,9 +3836,12 @@
</modify-function>
<modify-function signature="parentWidget()const">
- <modify-argument index="return">
- <define-ownership owner="target"/>
- </modify-argument>
+ <modify-argument index="this">
+ <parent index="return" action="add"/>
+ </modify-argument>
+ <modify-argument index="return">
+ <define-ownership class="target" owner="default"/>
+ </modify-argument>
</modify-function>
<modify-function signature="actionEvent(QActionEvent*)">