mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
fix: center selected item in CRS selection
git-svn-id: http://svn.osgeo.org/qgis/trunk@15452 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
242c315116
commit
c19e333dd0
@ -305,7 +305,6 @@ void QgsProjectionSelector::applyCRSNameSelection()
|
||||
if ( nodes.count() > 0 )
|
||||
{
|
||||
lstCoordinateSystems->setCurrentItem( nodes.first() );
|
||||
lstCoordinateSystems->scrollToItem( nodes.first() );
|
||||
}
|
||||
else // unselect the selected item to avoid confusing the user
|
||||
{
|
||||
@ -344,7 +343,6 @@ void QgsProjectionSelector::applyAuthIDSelection()
|
||||
if ( nodes.count() > 0 )
|
||||
{
|
||||
lstCoordinateSystems->setCurrentItem( nodes.first() );
|
||||
lstCoordinateSystems->scrollToItem( nodes.first() );
|
||||
}
|
||||
else // unselect the selected item to avoid confusing the user
|
||||
{
|
||||
@ -367,7 +365,6 @@ void QgsProjectionSelector::applyCRSIDSelection()
|
||||
if ( nodes.count() > 0 )
|
||||
{
|
||||
lstCoordinateSystems->setCurrentItem( nodes.first() );
|
||||
lstCoordinateSystems->scrollToItem( nodes.first() );
|
||||
}
|
||||
else // unselect the selected item to avoid confusing the user
|
||||
{
|
||||
@ -851,7 +848,7 @@ void QgsProjectionSelector::coordinateSystemSelected( QTreeWidgetItem * theItem
|
||||
QString myDescription;
|
||||
emit sridSelected( QString::number( selectedCrsId() ) );
|
||||
QString myProjString = selectedProj4String();
|
||||
lstCoordinateSystems->scrollToItem( theItem );
|
||||
lstCoordinateSystems->scrollToItem( theItem, QAbstractItemView::PositionAtCenter );
|
||||
teProjection->setText( myProjString );
|
||||
|
||||
lstRecent->clearSelection();
|
||||
|
Loading…
x
Reference in New Issue
Block a user