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

List:       kde-commits
Subject:    KDE_3_3_BRANCH: kdelibs/kdeui
From:       Pascal Létourneau <pletourn () globetrotter ! net>
Date:       2004-09-29 14:55:52
Message-ID: 20040929145552.4787E126E7 () office ! kde ! org
[Download RAW message or body]

CVS commit by pletourn: 

Contrain executable area to the first column
CCMAIL:90475-done@bugs.kde.org


  M +4 -1      klistview.cpp   1.225.2.3


--- kdelibs/kdeui/klistview.cpp  #1.225.2.2:1.225.2.3
@@ -492,6 +492,9 @@ bool KListView::isExecuteArea( int x, QL
         width += itemMargin();
         int ca = AlignHorizontal_Mask & columnAlignment( 0 );
-        if ( ca == AlignRight || ca == AlignAuto )
+        if ( ca == AlignLeft || ca == AlignAuto ) {
             width += item->width( fontMetrics(), this, 0 );
+            if ( width > columnWidth( 0 ) )
+                width = columnWidth( 0 );
+        }
     }
 


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

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