Skip to content

Commit 8cbf901

Browse files
committedMay 26, 2013
Show selected CRS. Fix #5563
1 parent 6164ace commit 8cbf901

File tree

2 files changed

+47
-19
lines changed

2 files changed

+47
-19
lines changed
 

‎src/gui/qgsprojectionselector.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,7 @@ void QgsProjectionSelector::applySelection( int column, QString value )
273273
lstCoordinateSystems->clearSelection();
274274
lstRecent->clearSelection();
275275
teProjection->setText( "" );
276+
teSelected->setText( "" );
276277
}
277278
}
278279

@@ -720,6 +721,7 @@ void QgsProjectionSelector::on_lstCoordinateSystems_currentItemChanged( QTreeWid
720721
emit sridSelected( QString::number( selectedCrsId() ) );
721722

722723
teProjection->setText( selectedProj4String() );
724+
teSelected->setText( selectedName() );
723725

724726
QList<QTreeWidgetItem*> nodes = lstRecent->findItems( current->text( QGIS_CRS_ID_COLUMN ), Qt::MatchExactly, QGIS_CRS_ID_COLUMN );
725727
if ( nodes.count() > 0 )
@@ -739,6 +741,7 @@ void QgsProjectionSelector::on_lstCoordinateSystems_currentItemChanged( QTreeWid
739741
// Not an CRS - remove the highlight so the user doesn't get too confused
740742
current->setSelected( false );
741743
teProjection->setText( "" );
744+
teSelected->setText( "" );
742745
lstRecent->clearSelection();
743746
}
744747
}
@@ -775,6 +778,7 @@ void QgsProjectionSelector::hideDeprecated( QTreeWidgetItem *item )
775778
{
776779
item->setSelected( false );
777780
teProjection->setText( "" );
781+
teSelected->setText( "" );
778782
}
779783
}
780784

‎src/ui/qgsprojectionselectorbase.ui

Lines changed: 43 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -25,33 +25,30 @@
2525
</iconset>
2626
</property>
2727
<layout class="QGridLayout" name="gridLayout_2">
28-
<item row="0" column="0">
29-
<layout class="QHBoxLayout" name="horizontalLayout">
28+
<item row="3" column="0">
29+
<layout class="QHBoxLayout" name="horizontalLayout_2">
3030
<item>
31-
<widget class="QLabel" name="label_5">
31+
<widget class="QLabel" name="label">
32+
<property name="font">
33+
<font>
34+
<weight>75</weight>
35+
<bold>true</bold>
36+
</font>
37+
</property>
3238
<property name="text">
33-
<string>Filter</string>
39+
<string>Selected CRS:</string>
3440
</property>
3541
</widget>
3642
</item>
3743
<item>
38-
<widget class="QgsFilterLineEdit" name="leSearch"/>
44+
<widget class="QLineEdit" name="teSelected">
45+
<property name="readOnly">
46+
<bool>true</bool>
47+
</property>
48+
</widget>
3949
</item>
4050
</layout>
4151
</item>
42-
<item row="1" column="0">
43-
<widget class="QLabel" name="label_3">
44-
<property name="font">
45-
<font>
46-
<weight>75</weight>
47-
<bold>true</bold>
48-
</font>
49-
</property>
50-
<property name="text">
51-
<string>Recently used coordinate reference systems</string>
52-
</property>
53-
</widget>
54-
</item>
5552
<item row="2" column="0">
5653
<widget class="QSplitter" name="splitter">
5754
<property name="orientation">
@@ -189,7 +186,34 @@
189186
</widget>
190187
</widget>
191188
</item>
192-
<item row="3" column="0">
189+
<item row="0" column="0">
190+
<layout class="QHBoxLayout" name="horizontalLayout">
191+
<item>
192+
<widget class="QLabel" name="label_5">
193+
<property name="text">
194+
<string>Filter</string>
195+
</property>
196+
</widget>
197+
</item>
198+
<item>
199+
<widget class="QgsFilterLineEdit" name="leSearch"/>
200+
</item>
201+
</layout>
202+
</item>
203+
<item row="1" column="0">
204+
<widget class="QLabel" name="label_3">
205+
<property name="font">
206+
<font>
207+
<weight>75</weight>
208+
<bold>true</bold>
209+
</font>
210+
</property>
211+
<property name="text">
212+
<string>Recently used coordinate reference systems</string>
213+
</property>
214+
</widget>
215+
</item>
216+
<item row="6" column="0">
193217
<widget class="QTextEdit" name="teProjection">
194218
<property name="minimumSize">
195219
<size>

0 commit comments

Comments
 (0)