Stupid solution to sip build errors

This commit is contained in:
Nyall Dawson 2022-03-29 09:05:18 +10:00
parent c5caecdab1
commit 9a6aad8de5
5 changed files with 23 additions and 1 deletions

View File

@ -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)

View File

@ -10,6 +10,10 @@
%ModuleHeaderCode
#include "qgsplotcanvasitem.h"
%End
class QgsPlotCanvasItem : QGraphicsItem
{
%Docstring(signature="appended")

View File

@ -11,6 +11,11 @@
%ModuleHeaderCode
#include "qgsplottool.h"
%End
class QgsPlotTool : QObject
{
%Docstring(signature="appended")

View File

@ -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.

View File

@ -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.