Skip to content

Commit

Permalink
fix bindings with core only
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Jun 24, 2021
1 parent f2758f9 commit 1851e37
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions python/core/auto_generated/auth/qgsauthmethod.sip.in
Expand Up @@ -10,8 +10,6 @@





class QgsAuthMethod : QObject
{
%Docstring(signature="appended")
Expand Down Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions python/gui/gui.sip.in
Expand Up @@ -3,6 +3,7 @@

${DEFAULTDOCSTRINGSIGNATURE}

%Feature HAVE_GUI
%Feature HAVE_QSCI_SIP

%Import core/core.sip
Expand Down
5 changes: 2 additions & 3 deletions src/core/auth/qgsauthmethod.h
Expand Up @@ -30,9 +30,8 @@
#endif

#include "qgsconfig.h"


#include "qgis_core.h"
#include "qgis_sip.h"

class QgsAuthMethodConfig;

Expand Down Expand Up @@ -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

/**
Expand Down

0 comments on commit 1851e37

Please sign in to comment.