[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: 2009-03-07 23:44:50
Message-ID: 1236469490.850026.30266.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 936572 by lappelhans:
Fix bug of all icons disappearing!
Thanks to Lamarque Vieira Souza for the original patch (I slightly modified it...).
Someone volunteers for backporting (aka has a checkout of the branch)?
CCMAIL:lamarque@gmail.com
BUG:185585
M +3 -8 quicklaunchApplet.cpp
--- trunk/KDE/kdebase/workspace/plasma/applets/quicklaunch/quicklaunchApplet.cpp \
#936571:936572 @@ -141,16 +141,11 @@
if (!m_innerLayout) {
return sizeHint;
}
+ qreal newWidth = m_innerLayout->columnCount() * sizeHint.height() / qMax(1, \
m_innerLayout->rowCount()); if (m_icons.size() > m_visibleIcons) {
- qreal factor = m_innerLayout->rowCount() * m_innerLayout->columnCount() \
+ size().height();
- if (factor) {
- sizeHint.setWidth(sizeHint.height() / factor);
- }
+ sizeHint.setWidth(newWidth + sizeHint.height());
} else {
- qreal factor = m_innerLayout->rowCount() * m_innerLayout->columnCount();
- if (factor) {
- sizeHint.setWidth(sizeHint.height() / factor);
- }
+ sizeHint.setWidth(newWidth);
}
return sizeHint;
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic