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

List:       kde-commits
Subject:    KDE/kdebase/workspace/plasma/applets/quicklaunch
From:       Beat Wolf <asraniel () fryx ! ch>
Date:       2009-09-01 13:20:27
Message-ID: 1251811227.352521.24692.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1018212 by beatwolf:

fix min size when not all icons are shown


 M  +5 -1      quicklaunchApplet.cpp  


--- trunk/KDE/kdebase/workspace/plasma/applets/quicklaunch/quicklaunchApplet.cpp #1018211:1018212
@@ -260,8 +260,12 @@
     } else {
         m_arrow->hide();
     }
-
     int cols = qMax(1,m_innerLayout->columnCount());
+    
+    if (count > m_visibleIcons && m_visibleIcons != -1) {
+        cols++;
+    }
+    
     int icons = qMax(1, qMin(m_icons.size(), m_visibleIcons));
 
     setPreferredSize(QSize((m_iconSize + 6) * cols,
[prev in list] [next in list] [prev in thread] [next in thread] 

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