aboutsummaryrefslogtreecommitdiffstats
path: root/PySide
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2011-05-03 12:21:10 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:54:17 -0300
commit2b69cc925f009b38a73495f82e74ac6992cf11d8 (patch)
tree841549baac61fa9a1e9b4bcf515f9e48bde869bc /PySide
parente50456ec721ccf909333d4a79aeed81707cd37ec (diff)
Fixed QStandardItem::clone and QStandardItemModel::setItemPrototype ownership rules.
Fixes bug #841. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Hugo Parente Lima <hugo.pl@gmail.com>
Diffstat (limited to 'PySide')
-rw-r--r--PySide/QtGui/typesystem_gui_common.xml7
1 files changed, 7 insertions, 0 deletions
diff --git a/PySide/QtGui/typesystem_gui_common.xml b/PySide/QtGui/typesystem_gui_common.xml
index 060129655..75ff05e47 100644
--- a/PySide/QtGui/typesystem_gui_common.xml
+++ b/PySide/QtGui/typesystem_gui_common.xml
@@ -2437,6 +2437,13 @@
</modify-argument>
</modify-function>
+ <modify-function signature="clone() const">
+ <modify-argument index="return">
+ <define-ownership class="native" owner="c++"/>
+ <define-ownership class="target" owner="target"/>
+ </modify-argument>
+ </modify-function>
+
<!-- ??? -->
<modify-function signature="operator&lt;(QStandardItem)const" remove="all"/>
</object-type>