aboutsummaryrefslogtreecommitdiffstats
path: root/PySide
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2010-08-12 09:59:48 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2010-08-12 10:34:46 -0300
commit0cf8145d78125453723680135881d5424a9c6168 (patch)
tree29a0d6c20bc49d6f342b0ac511212be575d80ecc /PySide
parent1cdc799701648aa8756d7eef756d97fccfe8a3b9 (diff)
Fix bug 295 - "QModelIndex::model() sets the QModelIndex as parent of the model"
Diffstat (limited to 'PySide')
-rw-r--r--PySide/QtCore/typesystem_core.xml7
1 files changed, 6 insertions, 1 deletions
diff --git a/PySide/QtCore/typesystem_core.xml b/PySide/QtCore/typesystem_core.xml
index b4f02ca86..2a5be3d13 100644
--- a/PySide/QtCore/typesystem_core.xml
+++ b/PySide/QtCore/typesystem_core.xml
@@ -657,7 +657,7 @@
<enum-type name="Qt::WidgetAttribute" />
<enum-type name="QMetaMethod::Access"/>
<enum-type name="QMetaMethod::MethodType"/>
-
+
<!--signal/slot-->
<inject-code class="target" position="end">
@@ -2157,6 +2157,11 @@
Py_XINCREF(%PYARG_0);
</inject-code>
</modify-function>
+ <modify-function signature="model()const">
+ <modify-argument index="return">
+ <define-ownership class="target" owner="default"/>
+ </modify-argument>
+ </modify-function>
</value-type>
<value-type name="QGenericArgument">