Add title to entry description on PlayerControls

This commit is contained in:
Bart De Vries 2021-04-16 10:14:51 +02:00
parent 5a3a5f40d1
commit 7113b23530
1 changed files with 20 additions and 9 deletions

View File

@ -83,9 +83,18 @@ Kirigami.Page {
anchors.leftMargin: 25
anchors.rightMargin: 25
clip: true
contentHeight: text.height
Controls.Label {
contentHeight: description.height
ColumnLayout {
id: description
width: parent.width
Kirigami.Heading {
text: audio.entry ? audio.entry.title : "No track title"
level: 2
wrapMode: Text.WordWrap
Layout.fillWidth: true
Layout.bottomMargin: Kirigami.Units.largeSpacing
}
Controls.Label {
id: text
text: audio.entry ? audio.entry.content : "No track loaded"
verticalAlignment: Text.AlignTop
@ -93,6 +102,8 @@ Kirigami.Page {
textFormat: Text.RichText
wrapMode: Text.WordWrap
onLinkActivated: Qt.openUrlExternally(link)
Layout.fillWidth: true
}
}
}
}