From 3c9a6923f801608d8b88fef67b65e133c5636628 Mon Sep 17 00:00:00 2001 From: Pierre Lamot Date: Wed, 29 Jan 2020 15:34:19 +0100 Subject: [PATCH] qml: add title in music genre view Signed-off-by: Jean-Baptiste Kempf --- 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 -- 2.11.4.GIT