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

List:       kde-commits
Subject:    KDE_3_1_BRANCH: kdelibs/kdeui
From:       Allan Sandfeld Jensen <kde () carewolf ! com>
Date:       2003-12-22 19:49:50
[Download RAW message or body]

CVS commit by carewolf: 

Back-port fix for bug 50798


  M +2 -2      kiconview.cpp   1.57.4.3


--- kdelibs/kdeui/kiconview.cpp  #1.57.4.2:1.57.4.3
@@ -480,6 +480,6 @@ void KIconViewItem::calcRect( const QStr
             itemIconRect = QRect( 0, ( height - itemIconRect.height() ) / 2,
                                   itemIconRect.width(), itemIconRect.height() );
-        else // icon smaller than text -> center with first line
-            itemIconRect = QRect( 0, ( fm->height() - itemIconRect.height() ) / 2,
+        else // icon smaller than text -> place in top or center with first line
+            itemIconRect = QRect( 0, QMAX(( fm->height() - itemIconRect.height() ) / 2, 0),
                                   itemIconRect.width(), itemIconRect.height() );
     }


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

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