Fix clip type incorrectly passed to qml

parent 06f92332
......@@ -178,6 +178,7 @@ QHash<int, QByteArray> TimelineItemModel::roleNames() const
roles[KeyframesRole] = "keyframeModel";
roles[ShowKeyframesRole] = "showKeyframes";
roles[StatusRole] = "clipStatus";
roles[TypeRole] = "clipType";
roles[InPointRole] = "in";
roles[OutPointRole] = "out";
roles[FramerateRole] = "fps";
......
......@@ -200,14 +200,14 @@ Column{
}
onLoaded: {
item.clipId= model.item
item.clipType = model.clipType
if (loader.item.isComposition === false) {
console.log('loaded clip: ', model.start, ', ID: ', model.item, ', index: ', trackRoot.DelegateModel.itemsIndex)
console.log('loaded clip: ', model.start, ', ID: ', model.item, ', index: ', trackRoot.DelegateModel.itemsIndex,', TYPE:', model.clipType)
item.isAudio= model.audio
item.markers= model.markers
item.hasAudio = model.hasAudio
item.canBeAudio = model.canBeAudio
item.canBeVideo = model.canBeVideo
item.clipType = model.clipType
//item.binId= model.binId
} else {
console.log('loaded composition: ', model.start, ', ID: ', model.item, ', index: ', trackRoot.DelegateModel.itemsIndex)
......
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