Add title to entry description on PlayerControls
This commit is contained in:
parent
5a3a5f40d1
commit
7113b23530
@ -83,16 +83,27 @@ Kirigami.Page {
|
|||||||
anchors.leftMargin: 25
|
anchors.leftMargin: 25
|
||||||
anchors.rightMargin: 25
|
anchors.rightMargin: 25
|
||||||
clip: true
|
clip: true
|
||||||
contentHeight: text.height
|
contentHeight: description.height
|
||||||
Controls.Label {
|
ColumnLayout {
|
||||||
|
id: description
|
||||||
width: parent.width
|
width: parent.width
|
||||||
id: text
|
Kirigami.Heading {
|
||||||
text: audio.entry ? audio.entry.content : "No track loaded"
|
text: audio.entry ? audio.entry.title : "No track title"
|
||||||
verticalAlignment: Text.AlignTop
|
level: 2
|
||||||
baseUrl: audio.entry ? audio.entry.baseUrl : ""
|
wrapMode: Text.WordWrap
|
||||||
textFormat: Text.RichText
|
Layout.fillWidth: true
|
||||||
wrapMode: Text.WordWrap
|
Layout.bottomMargin: Kirigami.Units.largeSpacing
|
||||||
onLinkActivated: Qt.openUrlExternally(link)
|
}
|
||||||
|
Controls.Label {
|
||||||
|
id: text
|
||||||
|
text: audio.entry ? audio.entry.content : "No track loaded"
|
||||||
|
verticalAlignment: Text.AlignTop
|
||||||
|
baseUrl: audio.entry ? audio.entry.baseUrl : ""
|
||||||
|
textFormat: Text.RichText
|
||||||
|
wrapMode: Text.WordWrap
|
||||||
|
onLinkActivated: Qt.openUrlExternally(link)
|
||||||
|
Layout.fillWidth: true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user