Skip to content

Commit

Permalink
Fixes to compile the bindings also with SIP 4.7.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
wonder committed Aug 6, 2007
1 parent 7f5264d commit aba6e0c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
7 changes: 7 additions & 0 deletions python/gui/qgsmapcanvasmap.sip
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@

%ModuleHeaderCode
// fix to allow compilation with sip 4.7 that for some reason
// doesn't add this include to the file where the code from
// ConvertToSubClassCode goes.
#include <qgsmapcanvasmap.h>
%End

class QgsMapCanvasMap : QGraphicsRectItem
{
%TypeHeaderCode
Expand Down
9 changes: 9 additions & 0 deletions python/gui/qgsmaptool.sip
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@

%ModuleHeaderCode
// fix to allow compilation with sip 4.7 that for some reason
// doesn't add these includes to the file where the code from
// ConvertToSubClassCode goes.
#include <qgsmaptoolzoom.h>
#include <qgsmaptoolpan.h>
#include <qgsmaptoolemitpoint.h>
%End

class QgsMapTool : QObject
{
%TypeHeaderCode
Expand Down

0 comments on commit aba6e0c

Please sign in to comment.