summaryrefslogtreecommitdiffstats
path: root/PySide/QtGui/typesystem_gui_common.xml
diff options
context:
space:
mode:
authorRenato Araujo Oliveira Filho <renato.filho@openbossa.org>2011-01-06 13:32:55 -0300
committerRenato Araujo Oliveira Filho <renato.filho@openbossa.org>2011-01-06 14:16:44 -0300
commitfb9c1a97fec24a43c0f25bc1492b10a884420f4d (patch)
tree2b9bb0c392e44df0547f93280e1f7b4edef7e188 /PySide/QtGui/typesystem_gui_common.xml
parent753d2bd1f63e29f2a6b812a157200a05e6c06cec (diff)
downloadpyside-fb9c1a97fec24a43c0f25bc1492b10a884420f4d.tar.gz
pyside-fb9c1a97fec24a43c0f25bc1492b10a884420f4d.tar.xz
pyside-fb9c1a97fec24a43c0f25bc1492b10a884420f4d.zip
Fixed QTreeWidgetItem.parent function policy.
Fixes bug #585 Reviewer: Hugo Parente Lima <hugo.lima@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
Diffstat (limited to 'PySide/QtGui/typesystem_gui_common.xml')
-rw-r--r--PySide/QtGui/typesystem_gui_common.xml19
1 files changed, 17 insertions, 2 deletions
diff --git a/PySide/QtGui/typesystem_gui_common.xml b/PySide/QtGui/typesystem_gui_common.xml
index 9c8b06b..676829e 100644
--- a/PySide/QtGui/typesystem_gui_common.xml
+++ b/PySide/QtGui/typesystem_gui_common.xml
@@ -3232,13 +3232,28 @@
</modify-argument>
</modify-function>
<modify-function signature="parent() const">
- <modify-argument index="this">
- <parent index="return" action="add"/>
+ <modify-argument index="return">
+ <define-ownership class="target" owner="default"/>
</modify-argument>
+ <inject-code class="target" position="end">
+ // Only call the parent function if this return some value
+ // the parent can be the TreeWidget
+ if (%0)
+ Shiboken::Object::setParent(%PYARG_0, %PYSELF);
+ </inject-code>
+ </modify-function>
+ <modify-function signature="treeWidget() const">
<modify-argument index="return">
<define-ownership class="target" owner="default"/>
</modify-argument>
+ <inject-code class="target" position="end">
+ // Only call the parent function if this return some value
+ // the parent can be the TreeWidgetItem
+ if (%0)
+ Shiboken::Object::setParent(%PYARG_0, %PYSELF);
+ </inject-code>
</modify-function>
+
<modify-function signature="backgroundColor(int)const" remove="all"/>
<!--### Obsolete in 4.3-->
<modify-function signature="setBackgroundColor(int, QColor)" remove="all"/>