[Kst] extragear/graphics/kst/kst

Andrew Walker arwalker at sumusltd.com
Fri Dec 2 01:03:35 CET 2005


SVN commit 484808 by arwalker:

CCBUG:116442 Explicitly set fixed number of columns to try and prevent a very wide widget.

 M  +7 -0      ktimezonecombo.cpp  


--- trunk/extragear/graphics/kst/kst/ktimezonecombo.cpp #484807:484808
@@ -18,6 +18,7 @@
     Boston, MA 02110-1301, USA.
 */
 
+#include <qlistbox.h>
 #include <qmemarray.h>
 
 #include <klocale.h>
@@ -40,6 +41,12 @@
     db = new KstTimezones;
   }
 
+  if (listBox()) {
+    listBox()->setVScrollBarMode(QScrollView::AlwaysOn);
+    listBox()->setColumnMode(QListBox::FixedNumber);
+    listBox()->setRowMode(QListBox::Variable);
+  }
+  
   insertItem("UTC");
   const KstTimezones::ZoneMap zones = db->allZones();
   d->_offsets.resize(zones.count()+1);


More information about the Kst mailing list