[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/kdeui/icons
From: Roman Jarosz <kedgedev () gmail ! com>
Date: 2009-03-31 19:46:42
Message-ID: 1238528802.351317.18509.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 947574 by rjarosz:
If icon is bigger than requested icon size scale it down otherwise the icon will be cut off.
M +2 -1 kiconloader.cpp
--- trunk/KDE/kdelibs/kdeui/icons/kiconloader.cpp #947573:947574
@@ -1271,7 +1271,8 @@
#endif
if (iconType == KIconLoader::Threshold && size != img->width())
{
- if ( abs(size-img->width())>iconThreshold )
+ const int sizeDiff = size - img->width();
+ if (sizeDiff < 0 || sizeDiff > iconThreshold)
*img = img->scaled(size, size, Qt::IgnoreAspectRatio, Qt::SmoothTransformation);
}
if (group >= 0)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic