[vlmc-devel] TracksView: Implement moving effects
Yikai Lu
git at videolan.org
Thu Jun 30 16:33:15 CEST 2016
vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Thu Jun 30 19:10:32 2016 +0900| [955f4ab4ffddd263b9404571bd010e871642e3a7] | committer: Yikai Lu
TracksView: Implement moving effects
> https://code.videolan.org/videolan/vlmc/commit/955f4ab4ffddd263b9404571bd010e871642e3a7
---
src/Gui/timeline/TracksView.cpp | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/Gui/timeline/TracksView.cpp b/src/Gui/timeline/TracksView.cpp
index 138de79..82ea72a 100644
--- a/src/Gui/timeline/TracksView.cpp
+++ b/src/Gui/timeline/TracksView.cpp
@@ -1168,6 +1168,11 @@ TracksView::mouseReleaseEvent( QMouseEvent *event )
{
targetPos = m_actionItem->startPos() - m_effectTarget->startPos();
effectItem->setContainer( m_effectTarget );
+ effectItem->triggerMove( m_effectTarget->clip()->input(), targetPos );
+ }
+ else
+ {
+ effectItem->triggerMove( m_actionItem->track()->trackWorkflow(), targetPos );
}
}
else
More information about the Vlmc-devel
mailing list