fix auth manager bindings without gui

This commit is contained in:
Denis Rouzaud 2021-06-24 15:27:36 +02:00
parent 437b3efb92
commit cfb4241767
2 changed files with 4 additions and 0 deletions

View File

@ -219,6 +219,7 @@ Gets authentication method from the config/provider cache via its key
%If (HAVE_GUI)
QWidget *authMethodEditWidget( const QString &authMethodKey, QWidget *parent ); QWidget *authMethodEditWidget( const QString &authMethodKey, QWidget *parent );
%Docstring %Docstring
@ -226,6 +227,7 @@ Gets authentication method edit widget via its key
:param authMethodKey: Authentication method key :param authMethodKey: Authentication method key
:param parent: Parent widget :param parent: Parent widget
%End
%End %End
QgsAuthMethod::Expansions supportedAuthMethodExpansions( const QString &authcfg ); QgsAuthMethod::Expansions supportedAuthMethodExpansions( const QString &authcfg );

View File

@ -245,6 +245,7 @@ class CORE_EXPORT QgsAuthManager : public QObject
QgsAuthMethodsMap authMethodsMap( const QString &dataprovider = QString() ) SIP_SKIP; QgsAuthMethodsMap authMethodsMap( const QString &dataprovider = QString() ) SIP_SKIP;
#ifdef HAVE_GUI #ifdef HAVE_GUI
SIP_IF_FEATURE( HAVE_GUI )
/** /**
* Gets authentication method edit widget via its key * Gets authentication method edit widget via its key
@ -252,6 +253,7 @@ class CORE_EXPORT QgsAuthManager : public QObject
* \param parent Parent widget * \param parent Parent widget
*/ */
QWidget *authMethodEditWidget( const QString &authMethodKey, QWidget *parent ); QWidget *authMethodEditWidget( const QString &authMethodKey, QWidget *parent );
SIP_END
#endif #endif
/** /**