From 7d23569952ef52841f784576c7e60eaecae2fdca Mon Sep 17 00:00:00 2001 From: Max-Wilhelm Bruker Date: Tue, 12 Jul 2011 00:51:33 +0200 Subject: [PATCH] locale aware user sorting --- cockatrice/src/userlist.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cockatrice/src/userlist.cpp b/cockatrice/src/userlist.cpp index 71101f48..d0eef42e 100644 --- a/cockatrice/src/userlist.cpp +++ b/cockatrice/src/userlist.cpp @@ -92,7 +92,7 @@ bool UserListTWI::operator<(const QTreeWidgetItem &other) const return data(0, Qt::UserRole).toInt() > other.data(0, Qt::UserRole).toInt(); // Sort by name - return data(2, Qt::UserRole).toString().toLower() < other.data(2, Qt::UserRole).toString().toLower(); + return QString::localeAwareCompare(data(2, Qt::UserRole).toString(), other.data(2, Qt::UserRole).toString()) < 0; } UserList::UserList(TabSupervisor *_tabSupervisor, AbstractClient *_client, UserListType _type, QWidget *parent)