diff options
author | Hugo Parente Lima <hugo.pl@gmail.com> | 2011-02-03 18:18:32 -0200 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:53:52 -0300 |
commit | ae2019a4da7da95693023db78bef8adb07afe615 (patch) | |
tree | 61b13d01acd12bf67d13cf1d96943bd743bbdeb1 /PySide/QtCore | |
parent | 13a6cba842c15bd28dd0d9626789fa2987e4a236 (diff) |
QPersistentModelIndex now have the same implementation of internalPointer of QModelIndex.
Diffstat (limited to 'PySide/QtCore')
-rw-r--r-- | PySide/QtCore/typesystem_core.xml | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/PySide/QtCore/typesystem_core.xml b/PySide/QtCore/typesystem_core.xml index 5c5383b4e..3ae259684 100644 --- a/PySide/QtCore/typesystem_core.xml +++ b/PySide/QtCore/typesystem_core.xml @@ -912,8 +912,16 @@ </extra-includes> </value-type> <value-type name="QPersistentModelIndex"> - <modify-function signature="internalPointer()const" remove="all"/> - <modify-function signature="operator const QModelIndex&()const" remove="all" /> <!-- FIXME Removed due to a shiboken bug--> + <modify-function signature="internalPointer()const"> + <inject-code class="target" position="beginning"> + %PYARG_0 = (PyObject*)%CPPSELF.%FUNCTION_NAME(); + if (!%PYARG_0) + %PYARG_0 = Py_None; + Py_XINCREF(%PYARG_0); + </inject-code> + </modify-function> + <!-- FIXME Removed due to a shiboken bug--> + <modify-function signature="operator const QModelIndex&()const" remove="all" /> </value-type> <value-type name="QUuid"> <enum-type name="Variant"/> |