mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-12 00:02:25 -04:00
ui cleanup in newogrconnection to buttonbox
git-svn-id: http://svn.osgeo.org/qgis/trunk@11995 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
81c2fe0312
commit
f2f35650a3
@ -34,6 +34,7 @@ QgsNewOgrConnection::QgsNewOgrConnection( QWidget *parent, const QString& connTy
|
||||
: QDialog( parent, fl )
|
||||
{
|
||||
setupUi( this );
|
||||
connect( buttonBox, SIGNAL( helpRequested() ),this,SLOT( help() ) );
|
||||
//add database drivers
|
||||
QStringList dbDrivers = QgsProviderRegistry::instance()->databaseDrivers().split( ";" );
|
||||
for ( int i = 0;i < dbDrivers.count();i++ )
|
||||
@ -105,21 +106,16 @@ void QgsNewOgrConnection::saveConnection()
|
||||
settings.setValue( baseKey + "/username", txtUsername->text() );
|
||||
settings.setValue( baseKey + "/password", chkStorePassword->isChecked() ? txtPassword->text() : "" );
|
||||
settings.setValue( baseKey + "/save", chkStorePassword->isChecked() ? "true" : "false" );
|
||||
accept();
|
||||
}
|
||||
|
||||
void QgsNewOgrConnection::helpInfo()
|
||||
{
|
||||
QgsContextHelp::run( context_id );
|
||||
}
|
||||
|
||||
/** Autoconnected SLOTS **/
|
||||
void QgsNewOgrConnection::on_btnOk_clicked()
|
||||
void QgsNewOgrConnection::accept()
|
||||
{
|
||||
saveConnection();
|
||||
QDialog::accept();
|
||||
}
|
||||
|
||||
void QgsNewOgrConnection::on_btnHelp_clicked()
|
||||
void QgsNewOgrConnection::help()
|
||||
{
|
||||
helpInfo();
|
||||
}
|
||||
@ -129,10 +125,11 @@ void QgsNewOgrConnection::on_btnConnect_clicked()
|
||||
testConnection();
|
||||
}
|
||||
|
||||
void QgsNewOgrConnection::on_btnCancel_clicked()
|
||||
void QgsNewOgrConnection::helpInfo()
|
||||
{
|
||||
reject();
|
||||
QgsContextHelp::run( context_id );
|
||||
}
|
||||
|
||||
/** end Autoconnected SLOTS **/
|
||||
|
||||
|
||||
|
@ -40,9 +40,8 @@ class QgsNewOgrConnection : public QDialog, private Ui::QgsNewOgrConnectionBase
|
||||
//! Display the context help
|
||||
void helpInfo();
|
||||
public slots:
|
||||
void on_btnOk_clicked();
|
||||
void on_btnCancel_clicked();
|
||||
void on_btnHelp_clicked();
|
||||
void accept();
|
||||
void help();
|
||||
void on_btnConnect_clicked();
|
||||
private:
|
||||
static const int context_id = 63428984;
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user