[QGIS Commit] r13553 - trunk/qgis/src/plugins/georeferencer

svn_qgis at osgeo.org svn_qgis at osgeo.org
Sun May 23 09:46:58 EDT 2010


Author: mmassing
Date: 2010-05-23 09:46:56 -0400 (Sun, 23 May 2010)
New Revision: 13553

Modified:
   trunk/qgis/src/plugins/georeferencer/qgsgcplistmodel.cpp
Log:
Print units of residual as well.

Modified: trunk/qgis/src/plugins/georeferencer/qgsgcplistmodel.cpp
===================================================================
--- trunk/qgis/src/plugins/georeferencer/qgsgcplistmodel.cpp	2010-05-23 12:43:43 UTC (rev 13552)
+++ trunk/qgis/src/plugins/georeferencer/qgsgcplistmodel.cpp	2010-05-23 13:46:56 UTC (rev 13553)
@@ -112,14 +112,9 @@
 
   //  // Setup table header
   QStringList itemLabels;
-  if ( wldTransform )
-  {
-    itemLabels << "on/off" << "id" << "srcX" << "srcY" << "dstX" << "dstY" << QString( "dX[" ) + tr( "map units" ) + "]" << QString( "dY[" ) + tr( "map units" ) + "]" << "residual";
-  }
-  else
-  {
-    itemLabels << "on/off" << "id" << "srcX" << "srcY" << "dstX" << "dstY" << QString( "dX[" ) + tr( "pixels" ) + "]" << QString( "dY[" ) + tr( "pixels" ) + "]" << "residual";
-  }
+  QString unitType = wldTransform ? tr( "map units" ) : tr ("pixels");
+  itemLabels << "on/off" << "id" << "srcX" << "srcY" << "dstX" << "dstY" << QString( "dX[" ) + unitType + "]" << QString( "dY[" ) + unitType + "]" << "residual[" + unitType + "]";
+
   setHorizontalHeaderLabels( itemLabels );
   setRowCount( mGCPList->size() );
 



More information about the QGIS-commit mailing list