[vlc-commits] qml: allow to define a header component in MusicAlbumsDisplay

Pierre Lamot git at videolan.org
Fri Sep 6 18:02:06 CEST 2019


vlc | branch: master | Pierre Lamot <pierre at videolabs.io> | Fri Sep  6 15:39:16 2019 +0200| [48be30ac06ce01b13866dde2a35f78cfa7f18d2c] | committer: Jean-Baptiste Kempf

qml: allow to define a header component in MusicAlbumsDisplay

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

 modules/gui/qt/qml/mediacenter/MusicAlbumsDisplay.qml | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/modules/gui/qt/qml/mediacenter/MusicAlbumsDisplay.qml b/modules/gui/qt/qml/mediacenter/MusicAlbumsDisplay.qml
index 9d9c6d63c0..0038ff8d1c 100644
--- a/modules/gui/qt/qml/mediacenter/MusicAlbumsDisplay.qml
+++ b/modules/gui/qt/qml/mediacenter/MusicAlbumsDisplay.qml
@@ -39,6 +39,9 @@ Utils.NavigableFocusScope {
     property alias parentId: delegateModel.parentId
     property var currentIndex: view.currentItem.currentIndex
 
+
+    property Component header: Item{}
+
     Utils.SelectableDelegateModel {
         id: delegateModel
         property alias parentId: albumModelId.parentId
@@ -116,6 +119,8 @@ Utils.NavigableFocusScope {
             cellWidth: VLCStyle.cover_normal + VLCStyle.margin_small
             cellHeight: VLCStyle.cover_normal + VLCStyle.fontHeight_normal * 2
 
+            headerDelegate: root.header
+
             delegate: AudioGridItem {
                 id: audioGridItem
 
@@ -162,6 +167,8 @@ Utils.NavigableFocusScope {
         Utils.KeyNavigableListView {
             id: listView_id
 
+            header: root.header
+
             interactive: root.interactive
 
             spacing: VLCStyle.margin_xxxsmall



More information about the vlc-commits mailing list