[vlc-devel] [PATCH 2/9] qml: remove 'Genre' text header from Genre view

Prince Gupta guptaprince8832 at gmail.com
Mon Aug 10 15:20:23 CEST 2020


---
 modules/gui/qt/medialibrary/qml/MusicGenres.qml | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)

diff --git a/modules/gui/qt/medialibrary/qml/MusicGenres.qml b/modules/gui/qt/medialibrary/qml/MusicGenres.qml
index c06eef1104..4d35ef041a 100644
--- a/modules/gui/qt/medialibrary/qml/MusicGenres.qml
+++ b/modules/gui/qt/medialibrary/qml/MusicGenres.qml
@@ -75,13 +75,6 @@ Widgets.NavigableFocusScope {
         onGridViewChanged: loadView()
     }
 
-    Component {
-        id: headerComponent
-        Widgets.LabelSeparator {
-            text: i18n.qtr("Genres")
-            width: root.width
-        }
-    }
     MLGenreModel {
         id: genreModel
         ml: medialib
@@ -152,8 +145,7 @@ Widgets.NavigableFocusScope {
 
             delegateModel: selectionModel
             model: genreModel
-
-            headerDelegate: headerComponent
+            topMargin: VLCStyle.margin_large
 
             delegate: AudioGridItem {
                 id: gridItem
@@ -193,7 +185,6 @@ Widgets.NavigableFocusScope {
             readonly property int _nbCols: VLCStyle.gridColumnsForWidth(tableView_id.availableRowWidth)
 
             model: genreModel
-            header: headerComponent
             headerColor: VLCStyle.colors.bg
             focus: true
             onActionForSelection: _actionAtIndex(index)
-- 
2.25.1



More information about the vlc-devel mailing list