[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/KDE/3.5/kdebase/kicker/libkicker
From:       Lukáš Tinkl <lukas () kde ! org>
Date:       2005-08-05 12:36:05
Message-ID: 1123245365.485895.6367.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 443235 by lukas:

little fixlet for non-English users mostly:
sort the applets alphabetically in the correct order.

Previously I thought we had lost some of the applets,
only to find them at the very end of the list :-(


 M  +3 -4      appletinfo.cpp  


--- branches/KDE/3.5/kdebase/kicker/libkicker/appletinfo.cpp #443234:443235
@@ -81,16 +81,15 @@
 
 bool AppletInfo::operator<( const AppletInfo& rhs ) const
 {
-    return name().lower() < rhs.name().lower();
+    return ( QString::localeAwareCompare( name(), rhs.name() ) < 0 );
 }
 
 bool AppletInfo::operator> ( const AppletInfo& rhs ) const
 {
-    return name().lower() > rhs.name().lower();
+    return ( QString::localeAwareCompare( name(), rhs.name() ) > 0 );
 }
 
 bool AppletInfo::operator<= ( const AppletInfo& rhs ) const
 {
-    return name().lower() <= rhs.name().lower();
+    return ( QString::localeAwareCompare( name(), rhs.name() ) <= 0 );
 }
-
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic