Skip to content

Commit

Permalink
Stupid solution to sip build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Apr 7, 2022
1 parent c5caecd commit 9a6aad8
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Expand Up @@ -967,7 +967,7 @@ if (WITH_CORE AND WITH_BINDINGS AND NOT WITH_QT6)
include(SIPMacros)

set(SIP_INCLUDES ${PYQT_SIP_DIR} ${CMAKE_SOURCE_DIR}/python)
set(SIP_CONCAT_PARTS 17)
set(SIP_CONCAT_PARTS 19)

if (NOT BINDINGS_GLOBAL_INSTALL)
set(Python_SITEARCH ${QGIS_DATA_DIR}/python)
Expand Down
4 changes: 4 additions & 0 deletions python/gui/auto_generated/plot/qgsplotcanvasitem.sip.in
Expand Up @@ -10,6 +10,10 @@



%ModuleHeaderCode
#include "qgsplotcanvasitem.h"
%End

class QgsPlotCanvasItem : QGraphicsItem
{
%Docstring(signature="appended")
Expand Down
5 changes: 5 additions & 0 deletions python/gui/auto_generated/plot/qgsplottool.sip.in
Expand Up @@ -11,6 +11,11 @@



%ModuleHeaderCode
#include "qgsplottool.h"
%End


class QgsPlotTool : QObject
{
%Docstring(signature="appended")
Expand Down
6 changes: 6 additions & 0 deletions src/gui/plot/qgsplotcanvasitem.h
Expand Up @@ -24,6 +24,12 @@

class QgsPlotCanvas;

#ifdef SIP_RUN
% ModuleHeaderCode
#include "qgsplotcanvasitem.h"
% End
#endif

/**
* \ingroup gui
* \brief An abstract class for items that can be placed on a QgsPlotCanvas.
Expand Down
7 changes: 7 additions & 0 deletions src/gui/plot/qgsplottool.h
Expand Up @@ -34,6 +34,13 @@ class QGestureEvent;
class QHelpEvent;
class QMenu;

#ifdef SIP_RUN
% ModuleHeaderCode
#include "qgsplottool.h"
% End
#endif


/**
* \ingroup gui
* \brief Abstract base class for all interactive plot tools.
Expand Down

0 comments on commit 9a6aad8

Please sign in to comment.