From c648d4ae9668f9da99ae20f55e329d00c0ac963d Mon Sep 17 00:00:00 2001 From: Simon Paul St James Date: Sun, 26 Oct 2008 14:17:34 +0000 Subject: [PATCH] Minor fix - ensure that the horizontal elastic band optimisation info works with filenames that are wider than the name column. svn path=/trunk/KDE/kdebase/apps/; revision=876107 --- src/dolphindetailsview.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dolphindetailsview.cpp b/src/dolphindetailsview.cpp index 0af2744b4..448e5a201 100644 --- a/src/dolphindetailsview.cpp +++ b/src/dolphindetailsview.cpp @@ -728,7 +728,7 @@ void DolphinDetailsView::updateElasticBandSelection() QModelIndex toggleIndexRangeBegin = QModelIndex(); do { - QRect currIndexRect = visualRect(currIndex); + QRect currIndexRect = visualRect(currIndex).intersect(nameColumnRect); const QString name = m_controller->itemForIndex(currIndex).name(); currIndexRect.setWidth(DolphinFileItemDelegate::nameColumnWidth(name, viewOptions())); @@ -776,7 +776,7 @@ void DolphinDetailsView::updateElasticBandSelection() lastIndex = currIndex; currIndex = nextIndex; } while (!allItemsInBoundDone); - + selectionModel()->select(itemsToToggle, QItemSelectionModel::Toggle); m_band.oldSelectionRect = selRect; -- 2.47.3