]> git.sesse.net Git - kdenlive/commitdiff
Fix clip selection with shift-click
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Mon, 25 Feb 2008 22:45:41 +0000 (22:45 +0000)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Mon, 25 Feb 2008 22:45:41 +0000 (22:45 +0000)
svn path=/branches/KDE4/; revision=1944

src/customtrackview.cpp

index 24ff4df63e2e4442b70c794539a2c236fef59102..86cf16b610918b44c9b4709bd38905b0d20063a5 100644 (file)
@@ -266,10 +266,16 @@ void CustomTrackView::mousePressEvent ( QMouseEvent * event )
 {
   kDebug()<<"-- TIMELINE MSE PRESSED";
   int pos = event->x();
-  if (event->modifiers() == Qt::ControlModifier) 
+  if (event->modifiers() == Qt::ControlModifier) {
     setDragMode(QGraphicsView::ScrollHandDrag);
-  else if (event->modifiers() == Qt::ShiftModifier) 
+    QGraphicsView::mousePressEvent(event);
+    return;
+  }
+  else if (event->modifiers() == Qt::ShiftModifier) {
     setDragMode(QGraphicsView::RubberBandDrag);
+    QGraphicsView::mousePressEvent(event);
+    return;
+  }
   else {
     bool collision = false;
     QList<QGraphicsItem *> collisionList = items(event->pos());