@@ -39,7 +39,12 @@ QgsSpatiaLiteSourceSelect::QgsSpatiaLiteSourceSelect( QgisApp * app, Qt::WFlags
39
39
QDialog( app, fl ), qgisApp( app )
40
40
{
41
41
setupUi ( this );
42
- btnAdd->setEnabled ( false );
42
+ mAddButton = new QPushButton ( tr ( " &Add" ) );
43
+ buttonBox->addButton ( mAddButton , QDialogButtonBox::ActionRole );
44
+ connect ( mAddButton ,SIGNAL ( clicked () ), this , SLOT ( addClicked () ) );
45
+ connect ( buttonBox,SIGNAL ( helpRequested () ), this , SLOT ( helpClicked () ) );
46
+
47
+ mAddButton ->setEnabled ( false );
43
48
populateConnectionList ();
44
49
45
50
mSearchModeComboBox ->addItem ( tr ( " Wildcard" ) );
@@ -79,15 +84,15 @@ void QgsSpatiaLiteSourceSelect::on_btnDelete_clicked()
79
84
}
80
85
81
86
// Slot for performing action when the Add button is clicked
82
- void QgsSpatiaLiteSourceSelect::on_btnAdd_clicked ()
87
+ void QgsSpatiaLiteSourceSelect::addClicked ()
83
88
{
84
89
addTables ();
85
90
}
86
91
87
92
// Slot for showing help
88
- void QgsSpatiaLiteSourceSelect::on_btnHelp_clicked ()
93
+ void QgsSpatiaLiteSourceSelect::helpClicked ()
89
94
{
90
- showHelp ( );
95
+ QgsContextHelp::run ( context_id );
91
96
}
92
97
93
98
/* * End Autoconnected SLOTS **/
@@ -475,7 +480,7 @@ void QgsSpatiaLiteSourceSelect::on_btnConnect_clicked()
475
480
476
481
// BEGIN CHANGES ECOS
477
482
if ( cmbConnections->count () > 0 )
478
- btnAdd ->setEnabled ( true );
483
+ mAddButton ->setEnabled ( true );
479
484
// END CHANGES ECOS
480
485
481
486
mTablesTreeView ->sortByColumn ( 0 , Qt::AscendingOrder );
@@ -553,11 +558,6 @@ bool QgsSpatiaLiteSourceSelect::getTableInfo( sqlite3 * handle )
553
558
return false ;
554
559
}
555
560
556
- void QgsSpatiaLiteSourceSelect::showHelp ()
557
- {
558
- QgsContextHelp::run ( context_id );
559
- }
560
-
561
561
QString QgsSpatiaLiteSourceSelect::fullDescription ( QString table, QString column, QString type )
562
562
{
563
563
QString full_desc = " " ;
0 commit comments