[vlc-commits] qml: remove 'Genre' text header from Genre view

Prince Gupta git at videolan.org
Tue Aug 18 17:14:45 CEST 2020


vlc | branch: master | Prince Gupta <guptaprince8832 at gmail.com> | Wed Jul 29 17:44:07 2020 +0530| [7a83ea37d2930b30d66adecc45d45c656a8623bb] | committer: Pierre Lamot

qml: remove 'Genre' text header from Genre view

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

 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)



More information about the vlc-commits mailing list