diff options
| author | Simon Paul St James <[email protected]> | 2008-10-26 14:17:34 +0000 |
|---|---|---|
| committer | Simon Paul St James <[email protected]> | 2008-10-26 14:17:34 +0000 |
| commit | c648d4ae9668f9da99ae20f55e329d00c0ac963d (patch) | |
| tree | 1c2d2ac754a0aeefc6a63e29fff50d4b4fbc1106 /src/dolphindetailsview.cpp | |
| parent | 82908b442ba437cdff200e319f6db20f7a6cd65a (diff) | |
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
Diffstat (limited to 'src/dolphindetailsview.cpp')
| -rw-r--r-- | src/dolphindetailsview.cpp | 4 |
1 files 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; |
