[vlc-devel] [PATCH 07/23] qml: add artist name to playlist item

Fatih Uzunoglu fuzun54 at outlook.com
Thu Jul 2 15:21:52 CEST 2020


---
 modules/gui/qt/playlist/qml/PLItem.qml | 22 ++++++++++++++++------
 1 file changed, 16 insertions(+), 6 deletions(-)

diff --git a/modules/gui/qt/playlist/qml/PLItem.qml b/modules/gui/qt/playlist/qml/PLItem.qml
index e858994782..a0bbb576bb 100644
--- a/modules/gui/qt/playlist/qml/PLItem.qml
+++ b/modules/gui/qt/playlist/qml/PLItem.qml
@@ -122,16 +122,26 @@ Rectangle {
                 source:  "qrc:///toolbar/play_b.svg"
             }
 
-            Text {
-                id: textInfo
+            Column {
                 Layout.fillWidth: true
                 Layout.leftMargin: VLCStyle.margin_small
 
-                font.pixelSize: VLCStyle.fontSize_normal
-                elide: Text.ElideRight
+                Widgets.ListLabel {
+                    id: textInfo
 
-                text: model.title
-                color: VLCStyle.colors.text
+                    font.pixelSize: VLCStyle.fontSize_normal
+                    elide: Text.ElideRight
+
+                    text: model.title
+                    color: VLCStyle.colors.text
+                }
+
+                Widgets.CaptionLabel {
+                    id: textArtist
+
+                    font.weight: model.isCurrent ? Font.DemiBold : Font.Normal
+                    text: (model.artist ? model.artist : i18n.qtr("Unknown Artist"))
+                }
             }
 
             Text {
-- 
2.25.1



More information about the vlc-devel mailing list