[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdebase/konqueror/listview
From: Pascal Létourneau <pletourn () globetrotter ! net>
Date: 2004-11-09 17:32:54
Message-ID: 20041109173254.D85E316CDA () office ! kde ! org
[Download RAW message or body]
CVS commit by pletourn:
Unbreak selection
M +2 -0 konq_infolistviewitem.cc 1.12
M +2 -0 konq_listviewitems.cc 1.68
M +4 -2 konq_listviewwidget.cc 1.251
--- kdebase/konqueror/listview/konq_listviewwidget.cc #1.250:1.251
@@ -411,8 +411,10 @@ void KonqBaseListViewWidget::contentsMou
if ( e->button() == LeftButton )
{
+ if ( !( e->state() & ControlButton ) )
+ setSelected( itemAt( vp ), false );
m_rubber = new QRect( e->x(), e->y(), 0, 0 );
- clearSelection();
- emit selectionChanged();
}
+ if ( e->button() != RightButton )
+ QListView::contentsMousePressEvent( e );
}
// Store list of selected items at mouse-press time.
--- kdebase/konqueror/listview/konq_infolistviewitem.cc #1.11:1.12
@@ -224,4 +224,6 @@ void KonqInfoListViewItem::paintCell( QP
{
int newWidth = width( lv->fontMetrics(), lv, _column );
+ if ( newWidth > _width )
+ newWidth = _width;
if ( pm && !pm->isNull() )
{
--- kdebase/konqueror/listview/konq_listviewitems.cc #1.67:1.68
@@ -276,4 +276,6 @@ void KonqListViewItem::paintCell( QPaint
{
int newWidth = width( lv->fontMetrics(), lv, _column );
+ if ( newWidth > _width )
+ newWidth = _width;
if ( pm && !pm->isNull() )
{
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic