Navigation Menu

Skip to content

Commit

Permalink
fix for #2985
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@14323 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Oct 3, 2010
1 parent df1a16e commit 3cf96c2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions python/CMakeLists.txt
Expand Up @@ -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})
Expand Down
5 changes: 4 additions & 1 deletion python/core/conversions.sip
Expand Up @@ -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
Expand Down Expand Up @@ -264,7 +266,7 @@ template <TYPE>




%If (QSETINT_CONVERSION)
%MappedType QSet<int>
{
%TypeHeaderCode
Expand Down Expand Up @@ -316,6 +318,7 @@ template <TYPE>
%End

};
%End


template <TYPE>
Expand Down

0 comments on commit 3cf96c2

Please sign in to comment.