Skip to content

Commit

Permalink
fix SIP condition
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Jun 24, 2021
1 parent 51f25b7 commit 144098b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions python/core/auto_generated/auth/qgsauthmethod.sip.in
Expand Up @@ -40,14 +40,14 @@ Increment this if method is significantly updated, allow updater code to be writ
%End



%If (HAVE_GUI)

virtual QWidget *editWidget( QWidget *parent ) const;
%End
%Docstring
Constructs the configuration for the authentication method

.. versionadded:: 3.22
%End
%End

QgsAuthMethod::Expansions supportedExpansions() const;
Expand Down
4 changes: 3 additions & 1 deletion src/core/auth/qgsauthmethod.h
Expand Up @@ -70,12 +70,14 @@ class CORE_EXPORT QgsAuthMethod : public QObject


#ifdef HAVE_GUI
SIP_IF_FEATURE( HAVE_GUI )

/**
* Constructs the configuration for the authentication method
* \since QGIS 3.22
*/
virtual QWidget *editWidget( QWidget *parent ) const SIP_WHEN_FEATURE( HAVE_GUI );
virtual QWidget *editWidget( QWidget *parent ) const;
SIP_END
#endif

/**
Expand Down

0 comments on commit 144098b

Please sign in to comment.