mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
Show selected CRS. Fix #5563
This commit is contained in:
parent
6164aced8d
commit
8cbf901b6a
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user