File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,10 @@ IF(PYQT4_VERSION_NUM LESS 263680) # 0x040600
39
39
SET (SIP_DISABLE_FEATURES ${SIP_DISABLE_FEATURES} PROXY_FACTORY )
40
40
ENDIF (PYQT4_VERSION_NUM LESS 263680 )
41
41
42
+ IF (NOT PYQT4_VERSION_NUM LESS 266496 ) # 0x041100
43
+ SET (SIP_DISABLE_FEATURES ${SIP_DISABLE_FEATURES} QSETINT_CONVERSION )
44
+ ENDIF (NOT PYQT4_VERSION_NUM LESS 266496 )
45
+
42
46
# core module
43
47
FILE (GLOB sip_files_core core/*.sip )
44
48
set (SIP_EXTRA_FILES_DEPEND ${sip_files_core} )
Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ which are not wrapped by PyQt:
14
14
- QMap<int, QgsOverlayObject*>*
15
15
*/
16
16
17
+ %Feature QSETINT_CONVERSION
18
+
17
19
%ModuleHeaderCode
18
20
// From Python 2.5, some functions use Py_ssize_t instead of int
19
21
// thus this typedef is for maintaining backward compatibility
@@ -264,7 +266,7 @@ template <TYPE>
264
266
265
267
266
268
267
-
269
+ %If (QSETINT_CONVERSION)
268
270
%MappedType QSet<int>
269
271
{
270
272
%TypeHeaderCode
@@ -316,6 +318,7 @@ template <TYPE>
316
318
%End
317
319
318
320
};
321
+ %End
319
322
320
323
321
324
template <TYPE>
You can’t perform that action at this time.
0 commit comments