mirror of https://github.com/KDE/kasts.git
Add title to entry description on PlayerControls
This commit is contained in:
parent
5a3a5f40d1
commit
7113b23530
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue