diff options
Diffstat (limited to 'sip/qt/qobjectlist.sip')
-rw-r--r-- | sip/qt/qobjectlist.sip | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sip/qt/qobjectlist.sip b/sip/qt/qobjectlist.sip index 2c528b0..eb323df 100644 --- a/sip/qt/qobjectlist.sip +++ b/sip/qt/qobjectlist.sip @@ -50,7 +50,7 @@ return type of a function or the type of an argument, a Python list of { PyObject *inst; - if ((inst = sipConvertFromInstance(obj,sipClass_QObject,sipTransferObj)) == NULL || PyList_Append(pl,inst) < 0) + if ((inst = sipConvertFromInstance(obj,sipClass_TQObject,sipTransferObj)) == NULL || PyList_Append(pl,inst) < 0) { Py_XDECREF(inst); Py_DECREF(pl); @@ -74,7 +74,7 @@ return type of a function or the type of an argument, a Python list of return 0; for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i) - if (!sipCanConvertToInstance(PyList_GET_ITEM(sipPy,i),sipClass_QObject,0)) + if (!sipCanConvertToInstance(PyList_GET_ITEM(sipPy,i),sipClass_TQObject,0)) return 0; return 1; @@ -89,7 +89,7 @@ return type of a function or the type of an argument, a Python list of // We apply the transfer to the list itself, not the elements. // Note that any temporary element will never be destroyed. // There is nothing that can be done about this. - qobj = reinterpret_cast<TQObject *>(sipConvertToInstance(PyList_GET_ITEM(sipPy,i),sipClass_QObject,0,0,0,sipIsErr)); + qobj = reinterpret_cast<TQObject *>(sipConvertToInstance(PyList_GET_ITEM(sipPy,i),sipClass_TQObject,0,0,0,sipIsErr)); if (*sipIsErr) { |