Skip to content

Commit

Permalink
Remember window size in some more dialogs"
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Oct 24, 2018
1 parent 7cf4153 commit 3abbaee
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/gui/auth/qgsauthconfigedit.cpp
Expand Up @@ -24,7 +24,7 @@
#include "qgsauthmethodedit.h"
#include "qgslogger.h"
#include "qgsapplication.h"

#include "qgsgui.h"

QgsAuthConfigEdit::QgsAuthConfigEdit( QWidget *parent, const QString &authcfg, const QString &dataprovider )
: QDialog( parent )
Expand Down Expand Up @@ -92,6 +92,8 @@ QgsAuthConfigEdit::QgsAuthConfigEdit( QWidget *parent, const QString &authcfg, c

leName->setFocus();
}

QgsGui::enableAutoGeometryRestore( this );
}

void QgsAuthConfigEdit::populateAuthMethods()
Expand Down
4 changes: 4 additions & 0 deletions src/gui/qgsnewhttpconnection.cpp
Expand Up @@ -18,6 +18,7 @@
#include "qgsauthsettingswidget.h"
#include "qgssettings.h"
#include "qgshelp.h"
#include "qgsgui.h"

#include <QMessageBox>
#include <QUrl>
Expand All @@ -32,6 +33,9 @@ QgsNewHttpConnection::QgsNewHttpConnection( QWidget *parent, ConnectionTypes typ
, mOriginalConnName( connectionName )
{
setupUi( this );

QgsGui::enableAutoGeometryRestore( this );

connect( buttonBox, &QDialogButtonBox::helpRequested, this, &QgsNewHttpConnection::showHelp );

QRegExp rx( "/connections-([^/]+)/" );
Expand Down
3 changes: 3 additions & 0 deletions src/providers/db2/qgsdb2newconnection.cpp
Expand Up @@ -26,12 +26,15 @@
#include "qgsdb2newconnection.h"
#include "qgsdb2dataitems.h"
#include "qgsdb2provider.h"
#include "qgsgui.h"

QgsDb2NewConnection::QgsDb2NewConnection( QWidget *parent, const QString &connName, Qt::WindowFlags fl )
: QDialog( parent, fl )
, mOriginalConnName( connName )
{
setupUi( this );
QgsGui::enableAutoGeometryRestore( this );

connect( btnConnect, &QPushButton::clicked, this, &QgsDb2NewConnection::btnConnect_clicked );
connect( buttonBox, &QDialogButtonBox::helpRequested, this, &QgsDb2NewConnection::showHelp );

Expand Down
3 changes: 3 additions & 0 deletions src/providers/mssql/qgsmssqlnewconnection.cpp
Expand Up @@ -25,12 +25,15 @@
#include "qgsmssqlprovider.h"
#include "qgssettings.h"
#include "qgsmssqlconnection.h"
#include "qgsgui.h"

QgsMssqlNewConnection::QgsMssqlNewConnection( QWidget *parent, const QString &connName, Qt::WindowFlags fl )
: QDialog( parent, fl )
, mOriginalConnName( connName )
{
setupUi( this );
QgsGui::enableAutoGeometryRestore( this );

connect( btnListDatabase, &QPushButton::clicked, this, &QgsMssqlNewConnection::btnListDatabase_clicked );
connect( btnConnect, &QPushButton::clicked, this, &QgsMssqlNewConnection::btnConnect_clicked );
connect( cb_trustedConnection, &QCheckBox::clicked, this, &QgsMssqlNewConnection::cb_trustedConnection_clicked );
Expand Down
3 changes: 3 additions & 0 deletions src/providers/postgres/qgspgnewconnection.cpp
Expand Up @@ -24,13 +24,16 @@
#include "qgsdatasourceuri.h"
#include "qgspostgresconn.h"
#include "qgssettings.h"
#include "qgsgui.h"

QgsPgNewConnection::QgsPgNewConnection( QWidget *parent, const QString &connName, Qt::WindowFlags fl )
: QDialog( parent, fl )
, mOriginalConnName( connName )

{
setupUi( this );
QgsGui::enableAutoGeometryRestore( this );

connect( btnConnect, &QPushButton::clicked, this, &QgsPgNewConnection::btnConnect_clicked );
connect( cb_geometryColumnsOnly, &QCheckBox::clicked, this, &QgsPgNewConnection::cb_geometryColumnsOnly_clicked );
connect( buttonBox, &QDialogButtonBox::helpRequested, this, &QgsPgNewConnection::showHelp );
Expand Down

0 comments on commit 3abbaee

Please sign in to comment.