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
Multimedia
Kdenlive
Commits
961059e8
Commit
961059e8
authored
Apr 16, 2020
by
Jean-Baptiste Mardelle
Browse files
Timeline track name: elide track name when collapsed or track height not sufficient
Related to
#636
parent
ad52c389
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/timeline2/view/qml/TrackHead.qml
View file @
961059e8
...
...
@@ -297,17 +297,19 @@ Rectangle {
anchors.top
:
parent
.
top
anchors.leftMargin
:
2
height
:
trackLed
.
height
width
:
buttonsRow
.
x
-
x
text
:
trackHeadRoot
.
trackName
elide
:
Text
.
ElideRight
font
:
miniFont
verticalAlignment
:
Text
.
AlignVCenter
horizontalAlignment
:
Text
.
Align
HCenter
visible
:
!
trackLabel
.
visible
&&
trackHeadRoot
.
width
>
trackTarget
.
width
+
expandButton
.
width
+
trackLed
.
width
+
(
4
*
muteButton
.
width
)
+
4
horizontalAlignment
:
Text
.
Align
Left
visible
:
!
trackLabel
.
visible
&&
trackHeadRoot
.
width
>
(
trackTarget
.
width
+
expandButton
.
width
+
trackLed
.
width
+
(
4
*
muteButton
.
width
)
+
4
)
}
Row
{
id
:
buttonsRow
width
:
childrenRect
.
width
x
:
Math
.
max
(
2
*
root
.
collapsedHeight
+
2
,
parent
.
width
-
width
-
4
)
spacing
:
0
id
:
buttonsRow
ToolButton
{
id
:
effectButton
focusPolicy
:
Qt
.
NoFocus
...
...
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