[QGIS Commit] r15452 - trunk/qgis/src/gui
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Sat Mar 12 13:57:10 EST 2011
Author: jef
Date: 2011-03-12 10:57:10 -0800 (Sat, 12 Mar 2011)
New Revision: 15452
Modified:
trunk/qgis/src/gui/qgsprojectionselector.cpp
Log:
fix: center selected item in CRS selection
Modified: trunk/qgis/src/gui/qgsprojectionselector.cpp
===================================================================
--- trunk/qgis/src/gui/qgsprojectionselector.cpp 2011-03-12 15:51:20 UTC (rev 15451)
+++ trunk/qgis/src/gui/qgsprojectionselector.cpp 2011-03-12 18:57:10 UTC (rev 15452)
@@ -305,7 +305,6 @@
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 @@
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 @@
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 @@
QString myDescription;
emit sridSelected( QString::number( selectedCrsId() ) );
QString myProjString = selectedProj4String();
- lstCoordinateSystems->scrollToItem( theItem );
+ lstCoordinateSystems->scrollToItem( theItem, QAbstractItemView::PositionAtCenter );
teProjection->setText( myProjString );
lstRecent->clearSelection();
More information about the QGIS-commit
mailing list