Commit 40ca098d authored by luyikei's avatar luyikei

Timeline: Link clips by a signal

parent f861c6d5
......@@ -78,10 +78,14 @@ Rectangle {
if ( !linkedClip )
return;
var linkedClipItem = findClipItem( linkedClip );
if ( !linkedClipItem )
return;
if ( linked === true )
findClipItem( linkedClip ).linked = true;
linkedClipItem.linked = true;
else
findClipItem( linkedClip ).linked = false;
linkedClipItem.linked = false;
}
function setPixelPosition( pixels )
......
......@@ -182,8 +182,6 @@ Item {
removeClipFromTrack( "Video", trackId, "videoUuid" );
}
if ( audioClipUuid && videoClipUuid ) {
findClipItem( audioClipUuid ).linkedClip = videoClipUuid;
findClipItem( videoClipUuid ).linkedClip = audioClipUuid;
workflow.linkClips( audioClipUuid, videoClipUuid );
}
currentUuid = "";
......
......@@ -530,6 +530,11 @@ Rectangle {
clip.end = clipInfo["end"];
clip.begin = clipInfo["begin"];
}
onClipLinked: {
findClipItem( uuidA ).linkedClip = uuidB;
findClipItem( uuidB ).linkedClip = uuidA;
}
}
Connections {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment