diff options
Diffstat (limited to 'sip/qt/qwidgetlist.sip')
-rw-r--r-- | sip/qt/qwidgetlist.sip | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sip/qt/qwidgetlist.sip b/sip/qt/qwidgetlist.sip index 2b70a2b..804eef0 100644 --- a/sip/qt/qwidgetlist.sip +++ b/sip/qt/qwidgetlist.sip @@ -50,7 +50,7 @@ instances is used instead. { PyObject *inst; - if ((inst = sipConvertFromInstance(obj,sipClass_QWidget,sipTransferObj)) == NULL || PyList_Append(pl,inst) < 0) + if ((inst = sipConvertFromInstance(obj,sipClass_TQWidget,sipTransferObj)) == NULL || PyList_Append(pl,inst) < 0) { Py_XDECREF(inst); Py_DECREF(pl); @@ -74,7 +74,7 @@ instances is used instead. return 0; for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i) - if (!sipCanConvertToInstance(PyList_GET_ITEM(sipPy,i),sipClass_QWidget,0)) + if (!sipCanConvertToInstance(PyList_GET_ITEM(sipPy,i),sipClass_TQWidget,0)) return 0; return 1; @@ -89,7 +89,7 @@ instances is used instead. // 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. - qw = reinterpret_cast<TQWidget *>(sipConvertToInstance(PyList_GET_ITEM(sipPy,i),sipClass_QWidget,0,0,0,sipIsErr)); + qw = reinterpret_cast<TQWidget *>(sipConvertToInstance(PyList_GET_ITEM(sipPy,i),sipClass_TQWidget,0,0,0,sipIsErr)); if (*sipIsErr) { |