diff options
-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"/> |