Skip to content
Permalink
Browse files

Show selected CRS. Fix #5563

  • Loading branch information
NathanW2 committed May 26, 2013
1 parent 6164ace commit 8cbf901b6a5cca0fad24c77fb9153f376c57d0f3
Showing with 47 additions and 19 deletions.
  1. +4 −0 src/gui/qgsprojectionselector.cpp
  2. +43 −19 src/ui/qgsprojectionselectorbase.ui
@@ -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<QTreeWidgetItem*> 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( "" );
}
}

@@ -25,33 +25,30 @@
</iconset>
</property>
<layout class="QGridLayout" name="gridLayout_2">
<item row="0" column="0">
<layout class="QHBoxLayout" name="horizontalLayout">
<item row="3" column="0">
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<widget class="QLabel" name="label_5">
<widget class="QLabel" name="label">
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>Filter</string>
<string>Selected CRS:</string>
</property>
</widget>
</item>
<item>
<widget class="QgsFilterLineEdit" name="leSearch"/>
<widget class="QLineEdit" name="teSelected">
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</item>
<item row="1" column="0">
<widget class="QLabel" name="label_3">
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>Recently used coordinate reference systems</string>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QSplitter" name="splitter">
<property name="orientation">
@@ -189,7 +186,34 @@
</widget>
</widget>
</item>
<item row="3" column="0">
<item row="0" column="0">
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QLabel" name="label_5">
<property name="text">
<string>Filter</string>
</property>
</widget>
</item>
<item>
<widget class="QgsFilterLineEdit" name="leSearch"/>
</item>
</layout>
</item>
<item row="1" column="0">
<widget class="QLabel" name="label_3">
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>Recently used coordinate reference systems</string>
</property>
</widget>
</item>
<item row="6" column="0">
<widget class="QTextEdit" name="teProjection">
<property name="minimumSize">
<size>

0 comments on commit 8cbf901

Please sign in to comment.
You can’t perform that action at this time.