From kde-commits Tue Sep 01 13:20:27 2009 From: Beat Wolf Date: Tue, 01 Sep 2009 13:20:27 +0000 To: kde-commits Subject: KDE/kdebase/workspace/plasma/applets/quicklaunch Message-Id: <1251811227.352521.24692.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=125181125103721 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,