From 6f34814460abb6b6cdd0c825f3fe68ffd1e81c1b Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Tue, 5 Aug 2008 13:03:12 +0000 Subject: [PATCH] Sort the items properly, according to the locale's settings svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=842517 --- appletbrowser/kcategorizeditemsviewmodels.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appletbrowser/kcategorizeditemsviewmodels.cpp b/appletbrowser/kcategorizeditemsviewmodels.cpp index 709fee4d7..77396627a 100644 --- a/appletbrowser/kcategorizeditemsviewmodels.cpp +++ b/appletbrowser/kcategorizeditemsviewmodels.cpp @@ -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)