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

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

CVS commit by pletourn: 

Contrain executable area to the first column


  M +4 -1      klistview.cpp   1.231


--- kdelibs/kdeui/klistview.cpp  #1.230:1.231
@@ -486,6 +486,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