[vlc-commits] qml: add artist name to playlist item

Fatih Uzunoglu git at videolan.org
Fri Jul 3 14:59:07 CEST 2020


vlc | branch: master | Fatih Uzunoglu <fuzun54 at outlook.com> | Mon Jun 22 21:13:10 2020 +0300| [565dfa88ead8f2dd0d841a48030d045ac619c10c] | committer: Pierre Lamot

qml: add artist name to playlist item

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=565dfa88ead8f2dd0d841a48030d045ac619c10c
---

 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 {



More information about the vlc-commits mailing list