]> git.sesse.net Git - kdenlive/commitdiff
Fix unmovable groups
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Sun, 14 Jun 2009 10:15:29 +0000 (10:15 +0000)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Sun, 14 Jun 2009 10:15:29 +0000 (10:15 +0000)
svn path=/trunk/kdenlive/; revision=3533

src/customtrackview.cpp

index 180b000bff4790486cec50ced8c83a47e259d7dd..40f591b9fa4f8366351891a2ca0ef7a34204f752 100644 (file)
@@ -646,7 +646,7 @@ void CustomTrackView::mousePressEvent(QMouseEvent * event)
             m_dragItem = static_cast <AbstractClipItem *>(collisionList.at(ct));
             m_dragItemInfo = m_dragItem->info();
             if (m_dragItem->parentItem() && m_dragItem->parentItem()->type() == GROUPWIDGET && m_dragItem->parentItem() != m_selectionGroup) {
-                //kDebug()<<"// KLIK FOUND GRP: "<<m_dragItem->sceneBoundingRect();
+                // kDebug()<<"// KLIK FOUND GRP: "<<m_dragItem->sceneBoundingRect();
                 dragGroup = static_cast <AbstractGroupItem *>(m_dragItem->parentItem());
             }
             break;
@@ -807,7 +807,7 @@ void CustomTrackView::mousePressEvent(QMouseEvent * event)
     }
 
     // If clicked item is selected, allow move
-    if (event->modifiers() != Qt::ControlModifier && m_operationMode == NONE && (m_dragItem->isSelected() || (dragGroup && dragGroup->isSelected()))) QGraphicsView::mousePressEvent(event);
+    if (event->modifiers() != Qt::ControlModifier && m_operationMode == NONE/* && (m_dragItem->isSelected() || (dragGroup && dragGroup->isSelected()))*/) QGraphicsView::mousePressEvent(event);
 
     m_clickPoint = QPoint((int)(mapToScene(event->pos()).x() - m_dragItem->startPos().frames(m_document->fps())), (int)(event->pos().y() - m_dragItem->pos().y()));
     m_operationMode = m_dragItem->operationMode(mapToScene(event->pos()));