Skip to content

Commit 0bd65ee

Browse files
author
jef
committed
fix #3378
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@14988 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent a57385e commit 0bd65ee

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

python/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ IF(NOT PYQT4_VERSION_NUM LESS 263941) # 0x040705
4343
SET(SIP_DISABLE_FEATURES ${SIP_DISABLE_FEATURES} QSETINT_CONVERSION)
4444
ENDIF(NOT PYQT4_VERSION_NUM LESS 263941)
4545

46+
IF(NOT PYQT4_VERSION_NUM LESS 264194) # 0x040802
47+
SET(SIP_DISABLE_FEATURES ${SIP_DISABLE_FEATURES} QSETTYPE_CONVERSION)
48+
ENDIF(NOT PYQT4_VERSION_NUM LESS 264194)
49+
4650
# core module
4751
FILE(GLOB sip_files_core core/*.sip)
4852
set(SIP_EXTRA_FILES_DEPEND ${sip_files_core})

python/core/conversions.sip

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ which are not wrapped by PyQt:
1515
*/
1616

1717
%Feature QSETINT_CONVERSION
18+
%Feature QSETTYPE_CONVERSION
1819

1920
%ModuleHeaderCode
2021
// From Python 2.5, some functions use Py_ssize_t instead of int
@@ -320,7 +321,7 @@ template <TYPE>
320321
};
321322
%End
322323

323-
324+
%If (QSETTYPE_CONVERSION)
324325
template <TYPE>
325326
%MappedType QSet<TYPE>
326327
{
@@ -394,8 +395,7 @@ template <TYPE>
394395
%End
395396

396397
};
397-
398-
398+
%End
399399

400400
template<TYPE>
401401
%MappedType QMap<int, QMap<int, TYPE> >

0 commit comments

Comments
 (0)