Commit a43a5377 authored by luyikei's avatar luyikei

Timeline: Implement transition

parent ec92497e
......@@ -217,6 +217,11 @@ Rectangle {
if ( uuid === "videoUuid" || uuid === "audioUuid" )
return;
thumbnailSource = "image://thumbnail/" + libraryUuid + "/0";
for ( var i = 0; i < allTransitions.length; ++i ) {
if ( allTransitions[i].begin === position || allTransitions[i].end === position + length - 1 )
allTransitions[i].clips.push( uuid );
}
}
Component.onDestruction: {
......
This diff is collapsed.
import QtQuick 2.0
ListView {
Rectangle {
id: container
width: parent.width
height: tracks.count * trackHeight
verticalLayoutDirection: isUpward ? ListView.BottomToTop : ListView.TopToBottom
interactive: false
focus: true
model: tracks
delegate: Track {
trackId: index
type: container.type
clips: model["clips"]
}
color: "#222222"
property ListModel tracks
property bool isUpward
property string type
property ListModel tracks
}
ListView {
anchors.fill: parent
verticalLayoutDirection: isUpward ? ListView.BottomToTop : ListView.TopToBottom
interactive: false
focus: true
model: tracks
delegate: Track {
trackId: index
type: container.type
clips: model["clips"]
transitionModel: model["transitions"]
}
}
}
This diff is collapsed.
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