]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/kitemviews/kitemlistcontroller.cpp
Improve the autoscrolling for the rubberband selection
[dolphin.git] / src / kitemviews / kitemlistcontroller.cpp
index ddae06c17c4f2fd27a50d7de5a1302bca39f674d..78c0a35946717e69b02121e2e966765cc23769b9 100644 (file)
@@ -306,6 +306,7 @@ bool KItemListController::mousePressEvent(QGraphicsSceneMouseEvent* event, const
         rubberBand->setEndPosition(startPos);
         rubberBand->setActive(true);
         connect(rubberBand, SIGNAL(endPositionChanged(QPointF,QPointF)), this, SLOT(slotRubberBandChanged()));
+        m_view->setAutoScroll(true);
     }
 
     return false;
@@ -365,6 +366,7 @@ bool KItemListController::mouseReleaseEvent(QGraphicsSceneMouseEvent* event, con
         disconnect(rubberBand, SIGNAL(endPositionChanged(QPointF,QPointF)), this, SLOT(slotRubberBandChanged()));
         rubberBand->setActive(false);
         m_oldSelection.clear();
+        m_view->setAutoScroll(false);
 
         if (rubberBand->startPosition() != rubberBand->endPosition()) {
             clearSelection = false;