Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Sashmita Raghav
kdenlive
Commits
937f47f9
Commit
937f47f9
authored
Jul 28, 2020
by
Sashmita Raghav
Browse files
Display subtitle text in rectangles
parent
df737ce1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/timeline2/view/qml/timeline.qml
View file @
937f47f9
...
...
@@ -1463,12 +1463,27 @@ Rectangle {
Item
{
id
:
subtitleRoot
visible
:
true
z
:
20
Rectangle
{
id
:
subtitleStartBase
width
:
1
width
:
(
model
.
endframe
-
model
.
startframe
)
*
timeScale
height
:
tracksContainer
.
height
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
}
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment