Skip to content

Commit

Permalink
Print units of residual as well.
Browse files Browse the repository at this point in the history
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 3bfe932
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/plugins/georeferencer/qgsgcplistmodel.cpp
Expand Up @@ -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() );

Expand Down

0 comments on commit 3bfe932

Please sign in to comment.