Fix forced track composition should indicate state in timeline (yellow background + track name)

parent c9358290
Pipeline #4026 passed with stage
in 29 minutes and 21 seconds
......@@ -202,14 +202,13 @@ Item {
Rectangle {
// text background
id: labelRect
color: compositionRoot.aTrack >= 0 ? 'yellow' : 'lightgray'
opacity: 0.7
color: compositionRoot.aTrack > -1 ? 'yellow' : 'lightgray'
anchors.top: container.top
width: label.width + 2
height: label.height
Text {
id: label
text: clipName + (compositionRoot.aTrack >= 0 ? ' > ' + timeline.getTrackNameFromMltIndex(compositionRoot.aTrack) : '')
text: clipName + (compositionRoot.aTrack > -1 ? ' > ' + timeline.getTrackNameFromMltIndex(compositionRoot.aTrack) : '')
font.pixelSize: root.baseUnit
anchors {
top: labelRect.top
......
......@@ -150,13 +150,13 @@ Column{
target: loader.item
property: "aTrack"
value: model.a_track
when: loader.status == Loader.Ready && loader.item.clipType == ProducerType.Composition
when: loader.status == Loader.Ready && model.clipType == ProducerType.Composition
}
Binding {
target: loader.item
property: "trackHeight"
value: root.trackHeight
when: loader.status == Loader.Ready && loader.item.clipType == ProducerType.Composition
when: loader.status == Loader.Ready && model.clipType == ProducerType.Composition
}
Binding {
target: loader.item
......
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