Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
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 b4ec703
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/plugins/georeferencer/qgsgcplistmodel.cpp
Expand Up @@ -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 );
}
Expand Down

0 comments on commit b4ec703

Please sign in to comment.