mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
fix for #2985
git-svn-id: http://svn.osgeo.org/qgis/trunk@14323 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
df1a16ec02
commit
3cf96c28f4
@ -39,6 +39,10 @@ IF(PYQT4_VERSION_NUM LESS 263680) # 0x040600
|
||||
SET(SIP_DISABLE_FEATURES ${SIP_DISABLE_FEATURES} PROXY_FACTORY)
|
||||
ENDIF(PYQT4_VERSION_NUM LESS 263680)
|
||||
|
||||
IF(NOT PYQT4_VERSION_NUM LESS 266496) # 0x041100
|
||||
SET(SIP_DISABLE_FEATURES ${SIP_DISABLE_FEATURES} QSETINT_CONVERSION)
|
||||
ENDIF(NOT PYQT4_VERSION_NUM LESS 266496)
|
||||
|
||||
# core module
|
||||
FILE(GLOB sip_files_core core/*.sip)
|
||||
set(SIP_EXTRA_FILES_DEPEND ${sip_files_core})
|
||||
|
@ -14,6 +14,8 @@ which are not wrapped by PyQt:
|
||||
- QMap<int, QgsOverlayObject*>*
|
||||
*/
|
||||
|
||||
%Feature QSETINT_CONVERSION
|
||||
|
||||
%ModuleHeaderCode
|
||||
// From Python 2.5, some functions use Py_ssize_t instead of int
|
||||
// thus this typedef is for maintaining backward compatibility
|
||||
@ -264,7 +266,7 @@ template <TYPE>
|
||||
|
||||
|
||||
|
||||
|
||||
%If (QSETINT_CONVERSION)
|
||||
%MappedType QSet<int>
|
||||
{
|
||||
%TypeHeaderCode
|
||||
@ -316,6 +318,7 @@ template <TYPE>
|
||||
%End
|
||||
|
||||
};
|
||||
%End
|
||||
|
||||
|
||||
template <TYPE>
|
||||
|
Loading…
x
Reference in New Issue
Block a user