http://kdenlive.org/mantis/view.php?id=1311
svn path=/trunk/kdenlive/; revision=4149
return;
} else if (m_operationMode == SPACER && move && m_selectionGroup) {
// spacer tool
+ snappedPos = getSnapPointForPos(mappedXPos + m_spacerOffset);
if (snappedPos < 0) snappedPos = 0;
// Make sure there is no collision
QList<QGraphicsItem *> children = m_selectionGroup->childItems();
selection.at(i)->parentItem()->setFlag(QGraphicsItem::ItemIsMovable, false);
}
}
-
+ m_spacerOffset = m_selectionGroup->sceneBoundingRect().left() - (int)(mapToScene(m_clickEvent).x());
if (!offsetList.isEmpty()) {
qSort(offsetList);
QList <GenTime> cleandOffsetList;
AbstractGroupItem *m_selectionGroup;
QList <ClipItem *> m_waitingThumbs;
int m_selectedTrack;
+ int m_spacerOffset;
/** Get the index of the video track that is just below current track */
int getPreviousVideoTrack(int track);