mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
* Fix #17444 : GeoNode data provider completely ignores authentication - hide the authentication group until GeoNode API supports authentication.
This commit is contained in:
parent
6d01543527
commit
364ddc1de4
@ -35,6 +35,7 @@ class QgsNewHttpConnection : QDialog
|
||||
enum Flag
|
||||
{
|
||||
FlagShowTestConnection,
|
||||
FlagHideAuthenticationGroup,
|
||||
};
|
||||
typedef QFlags<QgsNewHttpConnection::Flag> Flags;
|
||||
|
||||
|
@ -121,6 +121,11 @@ QgsNewHttpConnection::QgsNewHttpConnection( QWidget *parent, ConnectionTypes typ
|
||||
mGroupBox->layout()->removeWidget( mTestConnectionButton );
|
||||
}
|
||||
|
||||
if ( flags & FlagHideAuthenticationGroup )
|
||||
{
|
||||
mAuthGroupBox->hide();
|
||||
mGroupBox->layout()->removeWidget( mAuthGroupBox );
|
||||
}
|
||||
// Adjust height
|
||||
int w = width();
|
||||
adjustSize();
|
||||
|
@ -56,6 +56,7 @@ class GUI_EXPORT QgsNewHttpConnection : public QDialog, private Ui::QgsNewHttpCo
|
||||
enum Flag
|
||||
{
|
||||
FlagShowTestConnection = 1 << 1, //!< Display the 'test connection' button
|
||||
FlagHideAuthenticationGroup = 1 << 2, //!< Hide the Authentication group
|
||||
};
|
||||
Q_DECLARE_FLAGS( Flags, Flag )
|
||||
|
||||
|
@ -20,14 +20,18 @@
|
||||
#include "qgsgeonodeconnection.h"
|
||||
#include "qgsgeonoderequest.h"
|
||||
|
||||
/* For now we are hiding away authentication options since
|
||||
there is no support yet for authentication in GeoNode's API.
|
||||
We will re-enable this when this limitation changes.
|
||||
See https://github.com/GeoNode/geonode/issues/3442 TS */
|
||||
|
||||
QgsGeoNodeNewConnection::QgsGeoNodeNewConnection( QWidget *parent, const QString &connName, Qt::WindowFlags fl )
|
||||
: QgsNewHttpConnection( parent, QgsNewHttpConnection::ConnectionWfs | QgsNewHttpConnection::ConnectionWms,
|
||||
QgsGeoNodeConnectionUtils::pathGeoNodeConnection() + '/', connName, QgsNewHttpConnection::FlagShowTestConnection, fl )
|
||||
QgsGeoNodeConnectionUtils::pathGeoNodeConnection() + '/', connName,
|
||||
QgsNewHttpConnection::FlagShowTestConnection | QgsNewHttpConnection::FlagHideAuthenticationGroup, fl )
|
||||
{
|
||||
setWindowTitle( tr( "Create a New GeoNode Connection" ) );
|
||||
|
||||
updateServiceSpecificSettings();
|
||||
|
||||
connect( testConnectButton(), &QPushButton::clicked, this, &QgsGeoNodeNewConnection::testConnection );
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user