From 7113b2353040be9cebbaa5b4ed4101a424bcb603 Mon Sep 17 00:00:00 2001 From: Bart De Vries Date: Fri, 16 Apr 2021 10:14:51 +0200 Subject: [PATCH] Add title to entry description on PlayerControls --- src/qml/PlayerControls.qml | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/src/qml/PlayerControls.qml b/src/qml/PlayerControls.qml index 96c0b8e6..9b743c50 100644 --- a/src/qml/PlayerControls.qml +++ b/src/qml/PlayerControls.qml @@ -83,16 +83,27 @@ Kirigami.Page { anchors.leftMargin: 25 anchors.rightMargin: 25 clip: true - contentHeight: text.height - Controls.Label { + contentHeight: description.height + ColumnLayout { + id: description width: parent.width - 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) + 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 + baseUrl: audio.entry ? audio.entry.baseUrl : "" + textFormat: Text.RichText + wrapMode: Text.WordWrap + onLinkActivated: Qt.openUrlExternally(link) + Layout.fillWidth: true + } } } }