Skip to content
Permalink
Browse files
fix typo
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@14016 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Aug 6, 2010
1 parent 468522d commit b4ec703a28b3bd704d256e798ff721d692d4458e
Showing with 1 addition and 4 deletions.
  1. +1 −4 src/plugins/georeferencer/qgsgcplistmodel.cpp
@@ -30,22 +30,19 @@ class QgsStandardItem : public QStandardItem
QgsStandardItem( QString text ) : QStandardItem( text )
{
// In addition to the DisplayRole, also set the user role, which is used for sorting.
// This is needed for numerical sorting to work correctly (otherwise sorting is lexicographic).
setData( QVariant( text ), Qt::UserRole );
setTextAlignment( Qt::AlignRight );
}

QgsStandardItem( int value ) : QStandardItem( QString::number( value ) )
{
// In addition to the DisplayRole, also set the user role, which is used for sorting.
// This is needed for numerical sorting to work corretly (otherwise sorting is lexicographic).
setData( QVariant( value ), Qt::UserRole );
setTextAlignment( Qt::AlignCenter );
}

QgsStandardItem( double value ) : QStandardItem( QString::number( value, 'f', 2 ) )
{
// In addition to the DisplayRole, also set the user role, which is used for sorting.
// This is needed for numerical sorting to work corretly (otherwise sorting is lexicographic).
setData( QVariant( value ), Qt::UserRole );
setTextAlignment( Qt::AlignRight );
}

0 comments on commit b4ec703

Please sign in to comment.