--- qgis-1.5.0/python/core/conversions.sip.orig 2010-10-26 23:45:53.014113224 +0300 +++ qgis-1.5.0/python/core/conversions.sip 2010-10-26 23:47:10.681926282 +0300 @@ -265,59 +265,6 @@ -%MappedType QSet -{ -%TypeHeaderCode -#include -#if (SIP_VERSION >= 0x040900) -#define sipClass_QString ((sipWrapperType *) sipTypeAsPyTypeObject (sipType_QString)) -#define sipClass_QVariant ((sipWrapperType *) sipTypeAsPyTypeObject (sipType_QVariant)) -#endif -%End - -%ConvertFromTypeCode - // Create the list. - PyObject *l; - - if ((l = PyList_New(sipCpp->size())) == NULL) - return NULL; - - // Set the list elements. - QSet::iterator it = sipCpp->begin(); - for (int i = 0; it != sipCpp->end(); ++it, ++i) - { - PyObject *tobj; - - if ((tobj = PyInt_FromLong(*it)) == NULL) - { - Py_DECREF(l); - return NULL; - } - PyList_SET_ITEM(l, i, tobj); - } - - return l; -%End - -%ConvertToTypeCode - // Check the type if that is all that is required. - if (sipIsErr == NULL) - return PyList_Check(sipPy); - - QSet *qset = new QSet; - - for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i) - { - qset->insert(PyInt_AsLong(PyList_GET_ITEM(sipPy, i))); - } - - *sipCppPtr = qset; - return sipGetState(sipTransferObj); -%End - -}; - - template %MappedType QSet {