Skip to content
GitLab
Menu
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
Show whitespace changes
Inline
Side-by-side
src/timeline2/view/qml/timeline.qml
View file @
937f47f9
...
@@ -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
}
}
}
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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