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

List:       kde-commits
Subject:    KDE/kdebase/apps/plasma/applets/folderview
From:       Fredrik Höglund <fredrik () kde ! org>
Date:       2010-01-27 17:48:07
Message-ID: 1264614487.018055.7426.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1081083 by fredrik:

Use the full grid space available to the items when computing the
bounding rect.

The item rects are set to this size in the initial layout pass,
but are later adjusted to the size actually used the first time
they're painted.

This can result in a larger bounding rect being computed after
the initial layout than what would be computed when resizing the
view after all the icons have been painted.

Fixed for: KDE 4.4 RC3.
BUG: 185179


 M  +4 -1      iconview.cpp  


--- trunk/KDE/kdebase/apps/plasma/applets/folderview/iconview.cpp #1081082:1081083
@@ -828,7 +828,10 @@
     QRect boundingRect;
     for (int i = 0; i < m_validRows; i++) {
         if (m_items[i].layouted) {
-            boundingRect |= m_items[i].rect;
+            // Make sure we use the full space available to the item.
+            // The height of the item rect is adjusted to the number
+            // of text lines actually used.
+            boundingRect |= QRect(m_items[i].rect.topLeft(), gridSize());
         }
     }
 
[prev in list] [next in list] [prev in thread] [next in thread] 

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