File tree 1 file changed +1
-4
lines changed
src/plugins/georeferencer
1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -30,22 +30,19 @@ class QgsStandardItem : public QStandardItem
30
30
QgsStandardItem ( QString text ) : QStandardItem( text )
31
31
{
32
32
// In addition to the DisplayRole, also set the user role, which is used for sorting.
33
+ // This is needed for numerical sorting to work correctly (otherwise sorting is lexicographic).
33
34
setData ( QVariant ( text ), Qt::UserRole );
34
35
setTextAlignment ( Qt::AlignRight );
35
36
}
36
37
37
38
QgsStandardItem ( int value ) : QStandardItem( QString::number( value ) )
38
39
{
39
- // In addition to the DisplayRole, also set the user role, which is used for sorting.
40
- // This is needed for numerical sorting to work corretly (otherwise sorting is lexicographic).
41
40
setData ( QVariant ( value ), Qt::UserRole );
42
41
setTextAlignment ( Qt::AlignCenter );
43
42
}
44
43
45
44
QgsStandardItem ( double value ) : QStandardItem( QString::number( value, ' f' , 2 ) )
46
45
{
47
- // In addition to the DisplayRole, also set the user role, which is used for sorting.
48
- // This is needed for numerical sorting to work corretly (otherwise sorting is lexicographic).
49
46
setData ( QVariant ( value ), Qt::UserRole );
50
47
setTextAlignment ( Qt::AlignRight );
51
48
}
You can’t perform that action at this time.
0 commit comments