]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Minor fix - ensure that the horizontal elastic band optimisation info works with...
authorSimon Paul St James <kdedevel@etotheipiplusone.com>
Sun, 26 Oct 2008 14:17:34 +0000 (14:17 +0000)
committerSimon Paul St James <kdedevel@etotheipiplusone.com>
Sun, 26 Oct 2008 14:17:34 +0000 (14:17 +0000)
svn path=/trunk/KDE/kdebase/apps/; revision=876107

src/dolphindetailsview.cpp

index 0af2744b4e49930f60b952a8a16bebd8769f1b0f..448e5a201f49d0defa1fc1e60c6f69be9d50bfce 100644 (file)
@@ -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;