use case insensitive sorting in People

This commit is contained in:
csoler 2019-01-06 20:29:45 +01:00
parent 88c22c470b
commit 2d06aa3eb0
No known key found for this signature in database
GPG Key ID: 7BCA522266C0804C

View File

@ -133,8 +133,8 @@ class TreeWidgetItem : public QTreeWidgetItem
return v1 < v2;
}
else
return data(column,Qt::DisplayRole).toString() < other.data(column,Qt::DisplayRole).toString();
else // case insensitive sorting
return data(column,Qt::DisplayRole).toString().toUpper() < other.data(column,Qt::DisplayRole).toString().toUpper();
}
};