From: Simon Paul St James Date: Sun, 26 Oct 2008 14:17:34 +0000 (+0000) Subject: Minor fix - ensure that the horizontal elastic band optimisation info works with... X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/c648d4ae9668f9da99ae20f55e329d00c0ac963d 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 --- 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;