[vlc-commits] qml: add title in music genre view

Pierre Lamot git at videolan.org
Fri Feb 14 12:00:07 CET 2020


vlc | branch: master | Pierre Lamot <pierre at videolabs.io> | Wed Jan 29 15:34:19 2020 +0100| [3c9a6923f801608d8b88fef67b65e133c5636628] | committer: Jean-Baptiste Kempf

qml: add title in music genre view

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/gui/qt/medialibrary/qml/MusicGenresDisplay.qml | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/modules/gui/qt/medialibrary/qml/MusicGenresDisplay.qml b/modules/gui/qt/medialibrary/qml/MusicGenresDisplay.qml
index 9cd7e521eb..6763e6f743 100644
--- a/modules/gui/qt/medialibrary/qml/MusicGenresDisplay.qml
+++ b/modules/gui/qt/medialibrary/qml/MusicGenresDisplay.qml
@@ -43,6 +43,14 @@ Widgets.NavigableFocusScope {
             view.currentItem.currentIndex = 0;
     }
 
+    Component {
+        id: headerComponent
+        Widgets.LabelSeparator {
+            text: i18n.qtr("Genres")
+            width: root.width
+        }
+    }
+
     Util.SelectableDelegateModel {
         id: delegateModel
         model: MLGenreModel {
@@ -120,6 +128,9 @@ Widgets.NavigableFocusScope {
 
             model: delegateModel
             modelCount: delegateModel.items.count
+
+            headerDelegate: headerComponent
+
             delegate: AudioGridItem {
                 id: gridItem
 
@@ -161,6 +172,8 @@ Widgets.NavigableFocusScope {
             model: delegateModel.parts.list
             modelCount: delegateModel.items.count
 
+            header: headerComponent
+
             focus: true
             spacing: VLCStyle.margin_xxxsmall
 



More information about the vlc-commits mailing list