summaryrefslogtreecommitdiffstats
path: root/PySide/QtGui/typesystem_gui_common.xml
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2010-12-17 19:37:35 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2010-12-20 17:54:09 -0300
commit14a5405837736160ca94a2707916e1bacced39cb (patch)
tree0c39a39ec1c325a7499e4add8a14509188ae6ef2 /PySide/QtGui/typesystem_gui_common.xml
parentfbc06244e02967be1627b1effa61a96476384f7f (diff)
downloadpyside-14a5405837736160ca94a2707916e1bacced39cb.tar.gz
pyside-14a5405837736160ca94a2707916e1bacced39cb.tar.xz
pyside-14a5405837736160ca94a2707916e1bacced39cb.zip
Fixes bug #502.
The ownership of the editor returned by the Python override of QAbstractItemDelegate.createEditor(...) is now transferred to C++. A test was added to simulate the situation that triggers the bug, instead of relying on an example with a view, model and editable cells. See: http://bugs.openbossa.org/show_bug.cgi?id=502 Reviewed by Lauro Moura <lauro.neto@openbossa.org> Reviewed by Renato Ara├║jo <renato.filho@openbossa.org>
Diffstat (limited to 'PySide/QtGui/typesystem_gui_common.xml')
-rw-r--r--PySide/QtGui/typesystem_gui_common.xml3
1 files changed, 3 insertions, 0 deletions
diff --git a/PySide/QtGui/typesystem_gui_common.xml b/PySide/QtGui/typesystem_gui_common.xml
index cc27c4b..940f730 100644
--- a/PySide/QtGui/typesystem_gui_common.xml
+++ b/PySide/QtGui/typesystem_gui_common.xml
@@ -3047,6 +3047,9 @@
<modify-argument index="1">
<define-ownership owner="c++"/>
</modify-argument>
+ <modify-argument index="return">
+ <define-ownership class="native" owner="c++"/>
+ </modify-argument>
</modify-function>
</object-type>
<object-type name="QTableWidgetItem" >