aboutsummaryrefslogtreecommitdiffstats
path: root/PySide/QtCore
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2010-12-15 19:12:24 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:47:58 -0300
commit42d887ff86c9eb56a721d7cb979c4242f4f4953e (patch)
tree5517dc7c2e831e813b4d52d7a5135a421c19229c /PySide/QtCore
parentce42ea6eebacdc4ae3cef913d03d06dd77bb1516 (diff)
Fixed ownership of the value returned by QAbstractItemModel::data(...).
The value returned by Python to the virtual method QAbstractItemModel::data(...) called from C++ has its ownership transferred to C++. Reviewed by Lauro Moura <lauro.neto@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'PySide/QtCore')
-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 5ed694c1a..a30e50e14 100644
--- a/PySide/QtCore/typesystem_core.xml
+++ b/PySide/QtCore/typesystem_core.xml
@@ -1116,6 +1116,11 @@
<define-ownership owner="c++"/>
</modify-argument>
</modify-function>
+ <modify-function signature="data(const QModelIndex&amp;,int) const">
+ <modify-argument index="return">
+ <define-ownership class="native" owner="c++"/>
+ </modify-argument>
+ </modify-function>
</object-type>
<!-- QObject is created manually -->
<object-type name="QObject">