[QGIS Commit] r10110 - trunk/qgis/src/gui
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Thu Feb 5 07:08:40 EST 2009
Author: homann
Date: 2009-02-05 07:08:40 -0500 (Thu, 05 Feb 2009)
New Revision: 10110
Modified:
trunk/qgis/src/gui/qgsprojectionselector.cpp
Log:
Added EPSG to the quick CRS button
Modified: trunk/qgis/src/gui/qgsprojectionselector.cpp
===================================================================
--- trunk/qgis/src/gui/qgsprojectionselector.cpp 2009-02-05 11:30:15 UTC (rev 10109)
+++ trunk/qgis/src/gui/qgsprojectionselector.cpp 2009-02-05 12:08:40 UTC (rev 10110)
@@ -296,6 +296,7 @@
QString QgsProjectionSelector::getCrsIdName( long theCrsId )
{
+ QString retvalue("");
if (
( mProjListDone ) &&
( mUserProjListDone )
@@ -307,10 +308,14 @@
if ( nodes.count() > 0 )
{
- return nodes.first()->text(0);
+ retvalue = nodes.first()->text(NAME_COLUMN);
+ if (nodes.first()->text(EPSG_COLUMN) != "" )
+ {
+ retvalue += QString(" (EPSG : %1)").arg(nodes.first()->text(EPSG_COLUMN));
+ }
}
}
- return QString( "" );
+ return retvalue;
}
More information about the QGIS-commit
mailing list