Skip to content

Commit aba6e0c

Browse files
author
wonder
committed
Fixes to compile the bindings also with SIP 4.7.
In this SIP version, additional classes used when converting to a subclass don't get #included automatically so let's #include them globally with %ModuleHeaderCode git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7129 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 7f5264d commit aba6e0c

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

python/gui/qgsmapcanvasmap.sip

+7
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11

2+
%ModuleHeaderCode
3+
// fix to allow compilation with sip 4.7 that for some reason
4+
// doesn't add this include to the file where the code from
5+
// ConvertToSubClassCode goes.
6+
#include <qgsmapcanvasmap.h>
7+
%End
8+
29
class QgsMapCanvasMap : QGraphicsRectItem
310
{
411
%TypeHeaderCode

python/gui/qgsmaptool.sip

+9
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11

2+
%ModuleHeaderCode
3+
// fix to allow compilation with sip 4.7 that for some reason
4+
// doesn't add these includes to the file where the code from
5+
// ConvertToSubClassCode goes.
6+
#include <qgsmaptoolzoom.h>
7+
#include <qgsmaptoolpan.h>
8+
#include <qgsmaptoolemitpoint.h>
9+
%End
10+
211
class QgsMapTool : QObject
312
{
413
%TypeHeaderCode

0 commit comments

Comments
 (0)