Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Kdenlive
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
259
Issues
259
List
Boards
Labels
Service Desk
Milestones
Merge Requests
14
Merge Requests
14
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Multimedia
Kdenlive
Commits
14971b3e
Commit
14971b3e
authored
Oct 20, 2020
by
Sashmita Raghav
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable subtitle text editing on double click
parent
3d952925
Pipeline
#38187
passed with stage
in 21 minutes and 37 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
src/timeline2/view/qml/timeline.qml
src/timeline2/view/qml/timeline.qml
+6
-2
No files found.
src/timeline2/view/qml/timeline.qml
View file @
14971b3e
...
...
@@ -1481,6 +1481,7 @@ Rectangle {
width
:
duration
*
timeScale
// to make width change wrt timeline scale factor
height
:
parent
.
height
x
:
model
.
startframe
*
timeScale
;
property
bool
textEditBegin
:
false
/*Text {
id: subtitleText
anchors.fill: parent
...
...
@@ -1537,6 +1538,9 @@ Rectangle {
}
console
.
log
(
"
originalDuration after shifting
"
,
originalDuration
)
}
onDoubleClicked
:
{
parent
.
textEditBegin
=
true
}
}
TextField
{
id
:
subtitleEdit
...
...
@@ -1545,9 +1549,11 @@ Rectangle {
onEditingFinished
:
{
subtitleEdit
.
focus
=
false
timeline
.
editSubtitle
(
subtitleBase
.
x
/
timeline
.
scaleFactor
,
subtitleEdit
.
displayText
,
(
subtitleBase
.
x
+
subtitleBase
.
width
)
/
timeline
.
scaleFactor
)
parent
.
textEditBegin
=
false
}
anchors.fill
:
parent
visible
:
text
!=
""
&&
timeScale
>=
6
enabled
:
parent
.
textEditBegin
text
:
model
.
subtitle
height
:
subtitleBase
.
height
width
:
subtitleBase
.
width
...
...
@@ -1599,8 +1605,6 @@ Rectangle {
oldStartFrame
=
subtitleBase
.
x
// the original start frame of subtitle
console
.
log
(
oldStartFrame
)
console
.
log
(
subtitleBase
.
x
)
}
onPositionChanged
:
{
if
(
pressed
)
{
...
...
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