fix bindings with core only

This commit is contained in:
Denis Rouzaud 2021-06-24 11:24:09 +02:00
parent f2758f9745
commit 1851e379d1
3 changed files with 5 additions and 5 deletions

View File

@ -10,8 +10,6 @@
class QgsAuthMethod : QObject
{
%Docstring(signature="appended")
@ -43,7 +41,9 @@ Increment this if method is significantly updated, allow updater code to be writ
%If (HAVE_GUI)
virtual QWidget *editWidget( QWidget *parent ) const;
%End
%Docstring
Constructs the configuration for the authentication method

View File

@ -3,6 +3,7 @@
${DEFAULTDOCSTRINGSIGNATURE}
%Feature HAVE_GUI
%Feature HAVE_QSCI_SIP
%Import core/core.sip

View File

@ -30,9 +30,8 @@
#endif
#include "qgsconfig.h"
#include "qgis_core.h"
#include "qgis_sip.h"
class QgsAuthMethodConfig;
@ -76,7 +75,7 @@ class CORE_EXPORT QgsAuthMethod : public QObject
* Constructs the configuration for the authentication method
* \since QGIS 3.22
*/
virtual QWidget *editWidget( QWidget *parent ) const;
virtual QWidget *editWidget( QWidget *parent ) const SIP_WHEN_FEATURE( HAVE_GUI );
#endif
/**