mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-13 00:03:09 -04:00
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@7129 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
76d58b68fe
commit
497280c4d2
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user