Skip to content
Permalink
Browse files
Print units of residual as well.
git-svn-id: http://svn.osgeo.org/qgis/trunk@13553 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mmassing committed May 23, 2010
1 parent 4d46f19 commit 3bfe932d40c9c6a7479c2679a4de6a19ff915636
Showing with 3 additions and 8 deletions.
  1. +3 −8 src/plugins/georeferencer/qgsgcplistmodel.cpp
@@ -112,14 +112,9 @@ void QgsGCPListModel::updateModel()

// // 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() );

0 comments on commit 3bfe932

Please sign in to comment.