Timeline track name: elide track name when collapsed or track height not sufficient

Related to #636
parent ad52c389
......@@ -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.AlignHCenter
visible: !trackLabel.visible && trackHeadRoot.width > trackTarget.width + expandButton.width + trackLed.width + (4 * muteButton.width) + 4
horizontalAlignment: Text.AlignLeft
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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment