Skip to content

Commit a640eb0

Browse files
author
timlinux
committedFeb 27, 2010
UI Tidy ups
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@12981 c8812cc2-4d05-0410-92ff-de0c093fc19c

File tree

2 files changed

+10
-14
lines changed

2 files changed

+10
-14
lines changed
 

‎src/app/postgres/qgspgsourceselect.cpp

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ QgsPgSourceSelect::QgsPgSourceSelect( QWidget *parent, Qt::WFlags fl )
8181
QAbstractItemView::ExtendedSelection :
8282
QAbstractItemView::MultiSelection );
8383

84-
mSearchGroupBox->hide();
8584

8685
//for Qt < 4.3.2, passing -1 to include all model columns
8786
//in search does not seem to work
@@ -93,6 +92,16 @@ QgsPgSourceSelect::QgsPgSourceSelect( QWidget *parent, Qt::WFlags fl )
9392
{
9493
mTablesTreeView->setColumnWidth( i, settings.value( QString( "/Windows/PgSourceSelect/columnWidths/%1" ).arg( i ), mTablesTreeView->columnWidth( i ) ).toInt() );
9594
}
95+
96+
//hide the search options by default
97+
//they will be shown when the user ticks
98+
//the search options group box
99+
mSearchLabel->setVisible( false );
100+
mSearchColumnComboBox->setVisible( false );
101+
mSearchColumnsLabel->setVisible( false );
102+
mSearchModeComboBox->setVisible( false );
103+
mSearchModeLabel->setVisible( false );
104+
mSearchTableEdit->setVisible( false );
96105
}
97106
/** Autoconnected SLOTS **/
98107
// Slot for adding a new connection
@@ -186,18 +195,6 @@ void QgsPgSourceSelect::on_mTablesTreeView_doubleClicked( const QModelIndex &ind
186195
}
187196
}
188197

189-
void QgsPgSourceSelect::on_mSearchOptionsButton_clicked()
190-
{
191-
if ( mSearchGroupBox->isVisible() )
192-
{
193-
mSearchGroupBox->hide();
194-
}
195-
else
196-
{
197-
mSearchGroupBox->show();
198-
}
199-
}
200-
201198
void QgsPgSourceSelect::on_mSearchTableEdit_textChanged( const QString & text )
202199
{
203200
if ( mSearchModeComboBox->currentText() == tr( "Wildcard" ) )

‎src/app/postgres/qgspgsourceselect.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ class QgsPgSourceSelect : public QDialog, private Ui::QgsPgSourceSelectBase
135135
void on_btnSave_clicked();
136136
//! Loads the selected connections from the file
137137
void on_btnLoad_clicked();
138-
void on_mSearchOptionsButton_clicked();
139138
void on_mSearchTableEdit_textChanged( const QString & text );
140139
void on_mSearchColumnComboBox_currentIndexChanged( const QString & text );
141140
void on_mSearchModeComboBox_currentIndexChanged( const QString & text );

0 commit comments

Comments
 (0)
Please sign in to comment.