[vlc-commits] qml: show icons as header and centre align text for duration column in MusicAlbumExpandView

Prince Gupta git at videolan.org
Fri Jun 19 09:54:08 CEST 2020


vlc | branch: master | Prince Gupta <guptaprince8832 at gmail.com> | Wed Jun  3 18:28:29 2020 +0530| [2757af1ce8f74d28f9294d388a05ddf1aebcc4a2] | committer: Pierre Lamot

qml: show icons as header and centre align text for duration column in MusicAlbumExpandView

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

 modules/gui/qt/medialibrary/qml/MusicAlbumsGridExpandDelegate.qml | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/modules/gui/qt/medialibrary/qml/MusicAlbumsGridExpandDelegate.qml b/modules/gui/qt/medialibrary/qml/MusicAlbumsGridExpandDelegate.qml
index defc49a6ae..eb1439248b 100644
--- a/modules/gui/qt/medialibrary/qml/MusicAlbumsGridExpandDelegate.qml
+++ b/modules/gui/qt/medialibrary/qml/MusicAlbumsGridExpandDelegate.qml
@@ -169,11 +169,15 @@ Widgets.NavigableFocusScope {
                 sortModel: [
                     { criteria: "track_number",           width: VLCStyle.colWidth(1), visible: true, text: i18n.qtr("#"), showSection: "" },
                     { isPrimary: true, criteria: "title", width: VLCStyle.colWidth(Math.max(expand_track_id._nbCols - 2, 1)), visible: true, text: i18n.qtr("Title"), showSection: "" },
-                    { criteria: "duration",               width: VLCStyle.colWidth(1), visible: true, text: i18n.qtr("Duration"), showSection: "" },
+                    { criteria: "durationShort",          width: VLCStyle.colWidth(1), visible: true, showSection: "", colDelegate: tableColumns.timeColDelegate, headerDelegate: tableColumns.timeHeaderDelegate },
                 ]
 
                 navigationParent: root
                 navigationLeftItem: actionButtons
+
+                Widgets.TableColumns {
+                    id: tableColumns
+                }
             }
         }
     }



More information about the vlc-commits mailing list