Sort the items properly, according to the locale's settings
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=842517
This commit is contained in:
parent
37be252250
commit
6f34814460
@ -131,7 +131,7 @@ bool DefaultItemFilterProxyModel::filterAcceptsRow(int sourceRow,
|
||||
bool DefaultItemFilterProxyModel::lessThan(const QModelIndex &left,
|
||||
const QModelIndex &right) const
|
||||
{
|
||||
return sourceModel()->data(left).toString().compare(sourceModel()->data(right).toString(), sortCaseSensitivity()) < 0;
|
||||
return sourceModel()->data(left).toString().localeAwareCompare(sourceModel()->data(right).toString()) < 0;
|
||||
}
|
||||
|
||||
void DefaultItemFilterProxyModel::setSearch(const QString & pattern)
|
||||
|
Loading…
Reference in New Issue
Block a user