[QGIS Commit] r12981 - trunk/qgis/src/app/postgres
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Sat Feb 27 13:48:12 EST 2010
Author: timlinux
Date: 2010-02-27 13:48:10 -0500 (Sat, 27 Feb 2010)
New Revision: 12981
Modified:
trunk/qgis/src/app/postgres/qgspgsourceselect.cpp
trunk/qgis/src/app/postgres/qgspgsourceselect.h
Log:
UI Tidy ups
Modified: trunk/qgis/src/app/postgres/qgspgsourceselect.cpp
===================================================================
--- trunk/qgis/src/app/postgres/qgspgsourceselect.cpp 2010-02-27 17:19:14 UTC (rev 12980)
+++ trunk/qgis/src/app/postgres/qgspgsourceselect.cpp 2010-02-27 18:48:10 UTC (rev 12981)
@@ -81,7 +81,6 @@
QAbstractItemView::ExtendedSelection :
QAbstractItemView::MultiSelection );
- mSearchGroupBox->hide();
//for Qt < 4.3.2, passing -1 to include all model columns
//in search does not seem to work
@@ -93,6 +92,16 @@
{
mTablesTreeView->setColumnWidth( i, settings.value( QString( "/Windows/PgSourceSelect/columnWidths/%1" ).arg( i ), mTablesTreeView->columnWidth( i ) ).toInt() );
}
+
+ //hide the search options by default
+ //they will be shown when the user ticks
+ //the search options group box
+ mSearchLabel->setVisible( false );
+ mSearchColumnComboBox->setVisible( false );
+ mSearchColumnsLabel->setVisible( false );
+ mSearchModeComboBox->setVisible( false );
+ mSearchModeLabel->setVisible( false );
+ mSearchTableEdit->setVisible( false );
}
/** Autoconnected SLOTS **/
// Slot for adding a new connection
@@ -186,18 +195,6 @@
}
}
-void QgsPgSourceSelect::on_mSearchOptionsButton_clicked()
-{
- if ( mSearchGroupBox->isVisible() )
- {
- mSearchGroupBox->hide();
- }
- else
- {
- mSearchGroupBox->show();
- }
-}
-
void QgsPgSourceSelect::on_mSearchTableEdit_textChanged( const QString & text )
{
if ( mSearchModeComboBox->currentText() == tr( "Wildcard" ) )
Modified: trunk/qgis/src/app/postgres/qgspgsourceselect.h
===================================================================
--- trunk/qgis/src/app/postgres/qgspgsourceselect.h 2010-02-27 17:19:14 UTC (rev 12980)
+++ trunk/qgis/src/app/postgres/qgspgsourceselect.h 2010-02-27 18:48:10 UTC (rev 12981)
@@ -135,7 +135,6 @@
void on_btnSave_clicked();
//! Loads the selected connections from the file
void on_btnLoad_clicked();
- void on_mSearchOptionsButton_clicked();
void on_mSearchTableEdit_textChanged( const QString & text );
void on_mSearchColumnComboBox_currentIndexChanged( const QString & text );
void on_mSearchModeComboBox_currentIndexChanged( const QString & text );
More information about the QGIS-commit
mailing list