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
Multimedia
Kdenlive
Commits
ed751688
Commit
ed751688
authored
Feb 17, 2021
by
Julius Künzel
Browse files
Expanded track tag width only if >10 audio OR video tracks, not sum of
both >10
#696
parent
a3226740
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/timeline2/view/qml/timeline.qml
View file @
ed751688
...
...
@@ -266,6 +266,16 @@ Rectangle {
dragProxy
.
verticalOffset
=
0
}
function
getAudioTracksCount
(){
var
audioCount
=
0
;
for
(
var
i
=
0
;
i
<
trackHeaderRepeater
.
count
;
i
++
)
{
if
(
trackHeaderRepeater
.
itemAt
(
i
).
isAudio
)
{
audioCount
++
;
}
}
return
audioCount
;
}
function
getItemAtPos
(
tk
,
posx
,
isComposition
)
{
var
track
=
Logic
.
getTrackById
(
tk
)
var
container
=
track
.
children
[
0
]
...
...
@@ -340,7 +350,7 @@ Rectangle {
property
bool
showSubtitles
:
false
property
bool
subtitlesLocked
:
timeline
.
subtitlesLocked
property
bool
subtitlesDisabled
:
timeline
.
subtitlesDisabled
property
int
trackTagWidth
:
fontMetrics
.
boundingRect
(
"
M
"
).
width
*
(
trackHeaderRepeater
.
count
<
10
?
2
:
3
)
property
int
trackTagWidth
:
fontMetrics
.
boundingRect
(
"
M
"
).
width
*
(
(
getAudioTracksCount
()
>
9
)
||
(
trackHeaderRepeater
.
count
-
getAudioTracksCount
()
>
9
)
?
3
:
2
)
onSeekingFinishedChanged
:
{
playhead
.
opacity
=
seekingFinished
?
1
:
0.5
...
...
Julius Künzel
@jlskuz
mentioned in commit
078070c0
·
Feb 17, 2021
mentioned in commit
078070c0
mentioned in commit 078070c06abf7223057db380cbc1fe74adc28c58
Toggle commit list
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