[vlmc-devel] Clip.qml: Resize actually linked clips

Yikai Lu git at videolan.org
Wed Jul 26 09:11:36 CEST 2017


vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Wed Jul 26 15:41:04 2017 +0900| [cc9bea20f2f4a1e661cb54e019c888eaecca487c] | committer: Yikai Lu

Clip.qml: Resize actually linked clips

> https://code.videolan.org/videolan/vlmc/commit/cc9bea20f2f4a1e661cb54e019c888eaecca487c
---

 src/Gui/timeline/Clip.qml | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/src/Gui/timeline/Clip.qml b/src/Gui/timeline/Clip.qml
index 4d117b84..c819af44 100644
--- a/src/Gui/timeline/Clip.qml
+++ b/src/Gui/timeline/Clip.qml
@@ -56,6 +56,14 @@ Rectangle {
     function resize() {
         // This function updates Backend
         workflow.resizeClip( uuid, begin, end, position );
+        for ( var i = 0; i < linkedClips.length; ++i )
+        {
+            var linkedClip = linkedClips[i];
+            var lc = findClipItem( linkedClip );
+            if ( lc === null )
+                return;
+            workflow.resizeClip( lc.uuid, lc.begin, lc.end, lc.position );
+        }
     }
 
     function selectLinkedClip() {
@@ -93,6 +101,7 @@ Rectangle {
         effectsItem.text = str;
     }
 
+    // This function only resizes clips in the frontend, not updating the backend
     function resizeLinkedClips( oldPos, oldBegin, oldEnd ) {
         for ( var i = 0; i < linkedClips.length; ++i )
         {



More information about the Vlmc-devel mailing list