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

svn_qgis at osgeo.org svn_qgis at osgeo.org
Fri Aug 6 03:44:37 EDT 2010


Author: jef
Date: 2010-08-06 07:44:37 +0000 (Fri, 06 Aug 2010)
New Revision: 14016

Modified:
   trunk/qgis/src/plugins/georeferencer/qgsgcplistmodel.cpp
Log:
fix typo

Modified: trunk/qgis/src/plugins/georeferencer/qgsgcplistmodel.cpp
===================================================================
--- trunk/qgis/src/plugins/georeferencer/qgsgcplistmodel.cpp	2010-08-06 07:24:34 UTC (rev 14015)
+++ trunk/qgis/src/plugins/georeferencer/qgsgcplistmodel.cpp	2010-08-06 07:44:37 UTC (rev 14016)
@@ -30,22 +30,19 @@
     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 );
     }



More information about the QGIS-commit mailing list