[vlc-devel] [PATCH 4/7] qml: show icons as header and centre align text for duration column in VideoList
Prince Gupta
guptaprince8832 at gmail.com
Tue Jun 9 11:46:30 CEST 2020
---
modules/gui/qt/medialibrary/qml/VideoListDisplay.qml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/gui/qt/medialibrary/qml/VideoListDisplay.qml b/modules/gui/qt/medialibrary/qml/VideoListDisplay.qml
index 84fccc576b..fc3e953aee 100644
--- a/modules/gui/qt/medialibrary/qml/VideoListDisplay.qml
+++ b/modules/gui/qt/medialibrary/qml/VideoListDisplay.qml
@@ -38,14 +38,14 @@ Widgets.KeyNavigableTableView {
property var sortModelMedium: [
{ type: "image", criteria: "thumbnail", width: VLCStyle.colWidth(1), text: i18n.qtr("Thumbnail"), showSection: "" },
- { criteria: "duration", width: VLCStyle.colWidth(1), text: i18n.qtr("Duration"), showSection: "" },
+ { criteria: "durationShort", width: VLCStyle.colWidth(1), showSection: "", colDelegate: timeColDelegate, headerDelegate: timeHeaderDelegate },
{ isPrimary: true, criteria: "title", width: VLCStyle.colWidth(2), text: i18n.qtr("Title"), showSection: "title" },
{ type: "contextButton", width: VLCStyle.colWidth(1) }
]
property var sortModelLarge: [
{ type: "image", criteria: "thumbnail", width: VLCStyle.colWidth(1), text: i18n.qtr("Thumbnail"), showSection: "" },
- { criteria: "duration", width: VLCStyle.colWidth(1), text: i18n.qtr("Duration"), showSection: "" },
+ { criteria: "durationShort", width: VLCStyle.colWidth(1), showSection: "", colDelegate: timeColDelegate, headerDelegate: timeHeaderDelegate },
{ isPrimary: true, criteria: "title", width: VLCStyle.colWidth(4), text: i18n.qtr("Title"), showSection: "title" },
{ type: "contextButton", width: VLCStyle.colWidth(1) }
]
--
2.25.1
More information about the vlc-devel
mailing list