aboutsummaryrefslogtreecommitdiffstats
path: root/PySide
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2010-09-02 17:14:09 -0300
committerRenato Filho <renato.filho@openbossa.org>2010-09-02 17:36:00 -0300
commit94a402db7b479c9f33e6501aa670c5ed0d5f10e4 (patch)
tree8b8e5d572339b05590624eefa31431297d7c9a42 /PySide
parent8f4246a522aa02c9e1d7e44ab6a18d13075d53b9 (diff)
Fixed return ownership on mimeData function for QAbstractItemModel.
fixes bug #296. Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Hugo Parente Lima <hugo.pl@gmail.com>
Diffstat (limited to 'PySide')
-rw-r--r--PySide/QtCore/typesystem_core.xml5
1 files changed, 5 insertions, 0 deletions
diff --git a/PySide/QtCore/typesystem_core.xml b/PySide/QtCore/typesystem_core.xml
index 37c8d7ad3..1e7d18329 100644
--- a/PySide/QtCore/typesystem_core.xml
+++ b/PySide/QtCore/typesystem_core.xml
@@ -985,6 +985,11 @@
%PYARG_0 = %CONVERTTOPYTHON[%RETURN_TYPE](%CPPSELF.%FUNCTION_NAME(%1, %2, %PYARG_3));
</inject-code>
</add-function>
+ <modify-function signature="mimeData(QList&lt;QModelIndex&gt;) const">
+ <modify-argument index="return">
+ <define-ownership owner="c++"/>
+ </modify-argument>
+ </modify-function>
</object-type>
<!-- QObject is created manually -->
<object-type name="QObject">