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

List:       kde-commits
Subject:    kdebase/kcontrol/kdm
From:       Oswald Buddenhagen <ossi () kde ! org>
Date:       2004-04-12 22:39:05
Message-ID: 20040412223905.92B3090DD () office ! kde ! org
[Download RAW message or body]

CVS commit by ossi: 

somewhat crude way to disable locale-specific QListBox sorting.

fwiw, QListBox sucks major ass in that regard ... not only that there is
no clean way to disable locale-aware sorting, but it is also extremely
slow due to the repeated calls to local8Bit in the sorting loop.


  M +2 -0      main.cpp   1.72


--- kdebase/kcontrol/kdm/main.cpp  #1.71:1.72
@@ -44,4 +44,5 @@
 #include <sys/stat.h>
 #include <unistd.h>
+#include <locale.h>
 #include <pwd.h>
 #include <grp.h>
@@ -84,4 +85,5 @@ KDModule::KDModule(QWidget *parent, cons
   , updateOK(false)
 {
+  setlocale( LC_COLLATE, "C" );
 
   KGlobal::locale()->insertCatalogue("kcmbackground");


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

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