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

List:       kde-commits
Subject:    KDE/kdebase/workspace/plasma/applets/quicklaunch
From:       Lukas Appelhans <l.appelhans () gmx ! de>
Date:       2008-11-30 15:28:34
Message-ID: 1228058914.385602.3401.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 890874 by lappelhans:

Better sizing inside the panel


 M  +6 -4      quicklaunchApplet.cpp  


--- trunk/KDE/kdebase/workspace/plasma/applets/quicklaunch/quicklaunchApplet.cpp #890873:890874
@@ -178,8 +178,9 @@
     kDebug() << m_icons.count() << iconWidth << "pixel icons in" << rowCount
              << "rows, with a max of" << m_visibleIcons << "visible";
     foreach (QuicklaunchIcon *icon, m_icons) {
-        icon->setMinimumSize(minSize);
-        icon->setMaximumSize(maxSize);
+        //icon->setMinimumSize(minSize);
+        //icon->setMaximumSize(maxSize);
+        icon->resize(minSize);
 
         if (count < m_visibleIcons || m_visibleIcons == -1) {
             icon->show();
@@ -196,8 +197,9 @@
 
     m_layout->removeItem(m_arrow);
     if (count > m_visibleIcons && m_visibleIcons != -1) {
-        m_arrow->setMinimumSize(minSize);
-        m_arrow->setMaximumSize(maxSize);
+        //m_arrow->setMinimumSize(minSize);
+        //m_arrow->setMaximumSize(maxSize);
+        m_arrow->resize(minSize);
         m_layout->addItem(m_arrow);
         m_arrow->show();
     } else {
[prev in list] [next in list] [prev in thread] [next in thread] 

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