Skip to content

Commit

Permalink
build(QSci): fix build when python QSci is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
troopa81 committed Dec 16, 2024
1 parent a67d90d commit 1ccf058
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@




class QgsJsonEditWidget : QWidget
{
%Docstring(signature="appended")
Expand Down
5 changes: 4 additions & 1 deletion python/PyQt6/gui/gui.sip.in
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ ${DEFAULTDOCSTRINGSIGNATURE}
%Import QtGui/QtGuimod.sip
%Import QtXml/QtXmlmod.sip
%Import QtMultimedia/QtMultimediamod.sip
%Import ${QSCI_SIP_MOD_NAME}

%If (HAVE_QSCI_SIP)
%Import ${QSCI_SIP_MOD_NAME}
%End

%Include gui_auto.sip
2 changes: 2 additions & 0 deletions python/PyQt6/gui/gui_auto.sip
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,9 @@
%Include auto_generated/editorwidgets/qgsdefaultsearchwidgetwrapper.sip
%Include auto_generated/editorwidgets/qgsdoublespinbox.sip
%Include auto_generated/editorwidgets/qgshtmlwidgetwrapper.sip
%If ( HAVE_QSCI_SIP )
%Include auto_generated/editorwidgets/qgsjsoneditwidget.sip
%End
%Include auto_generated/editorwidgets/qgsmultiedittoolbutton.sip
%Include auto_generated/editorwidgets/qgsrelationaggregatesearchwidgetwrapper.sip
%Include auto_generated/editorwidgets/qgsrelationreferencesearchwidgetwrapper.sip
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@




class QgsJsonEditWidget : QWidget
{
%Docstring(signature="appended")
Expand Down
2 changes: 2 additions & 0 deletions src/gui/editorwidgets/qgsjsoneditwidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
#include "qgis_sip.h"
#include "qgis_gui.h"

SIP_IF_MODULE( HAVE_QSCI_SIP )

/**
* \ingroup gui
* \class QgsJsonEditWidget
Expand Down

0 comments on commit 1ccf058

Please sign in to comment.