Commit 937f47f9 authored by Sashmita Raghav's avatar Sashmita Raghav
Browse files

Display subtitle text in rectangles

parent df737ce1
...@@ -1463,12 +1463,27 @@ Rectangle { ...@@ -1463,12 +1463,27 @@ Rectangle {
Item { Item {
id: subtitleRoot id: subtitleRoot
visible : true visible : true
z: 20
Rectangle { Rectangle {
id: subtitleStartBase id: subtitleStartBase
width: 1 width: (model.endframe - model.startframe) * timeScale
height: tracksContainer.height height: tracksContainer.height
x: model.startframe * timeScale; x: model.startframe * timeScale;
color: 'red' color: 'steelblue'
border {
width: 2
color: 'blue'
}
Text {
id: subtitleText
anchors.fill: parent
visible: true
text: model.subtitle
color: 'white'
wrapMode: Text.WordWrap
verticalAlignment: Text.AlignVCenter
horizontalAlignment: Text.AlignHCenter
}
} }
} }
} }
......
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