From 8cbf901b6a5cca0fad24c77fb9153f376c57d0f3 Mon Sep 17 00:00:00 2001 From: Nathan Woodrow Date: Sun, 26 May 2013 12:42:05 +1000 Subject: [PATCH] Show selected CRS. Fix #5563 --- src/gui/qgsprojectionselector.cpp | 4 ++ src/ui/qgsprojectionselectorbase.ui | 62 ++++++++++++++++++++--------- 2 files changed, 47 insertions(+), 19 deletions(-) diff --git a/src/gui/qgsprojectionselector.cpp b/src/gui/qgsprojectionselector.cpp index d55ece1cf6d..a2ee53400b3 100644 --- a/src/gui/qgsprojectionselector.cpp +++ b/src/gui/qgsprojectionselector.cpp @@ -273,6 +273,7 @@ void QgsProjectionSelector::applySelection( int column, QString value ) lstCoordinateSystems->clearSelection(); lstRecent->clearSelection(); teProjection->setText( "" ); + teSelected->setText( "" ); } } @@ -720,6 +721,7 @@ void QgsProjectionSelector::on_lstCoordinateSystems_currentItemChanged( QTreeWid emit sridSelected( QString::number( selectedCrsId() ) ); teProjection->setText( selectedProj4String() ); + teSelected->setText( selectedName() ); QList nodes = lstRecent->findItems( current->text( QGIS_CRS_ID_COLUMN ), Qt::MatchExactly, QGIS_CRS_ID_COLUMN ); if ( nodes.count() > 0 ) @@ -739,6 +741,7 @@ void QgsProjectionSelector::on_lstCoordinateSystems_currentItemChanged( QTreeWid // Not an CRS - remove the highlight so the user doesn't get too confused current->setSelected( false ); teProjection->setText( "" ); + teSelected->setText( "" ); lstRecent->clearSelection(); } } @@ -775,6 +778,7 @@ void QgsProjectionSelector::hideDeprecated( QTreeWidgetItem *item ) { item->setSelected( false ); teProjection->setText( "" ); + teSelected->setText( "" ); } } diff --git a/src/ui/qgsprojectionselectorbase.ui b/src/ui/qgsprojectionselectorbase.ui index fc218a2eb57..e535bbbf40e 100644 --- a/src/ui/qgsprojectionselectorbase.ui +++ b/src/ui/qgsprojectionselectorbase.ui @@ -25,33 +25,30 @@ - - + + - + + + + 75 + true + + - Filter + Selected CRS: - + + + true + + - - - - - 75 - true - - - - Recently used coordinate reference systems - - - @@ -189,7 +186,34 @@ - + + + + + + Filter + + + + + + + + + + + + + 75 + true + + + + Recently used coordinate reference systems + + + +