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>
This commit is contained in:
Marcelo Lira 2010-12-17 19:37:35 -03:00 committed by Hugo Parente Lima
commit 7771798cf2
6 changed files with 91 additions and 7 deletions

View file

@ -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" >