[vlc-commits] qml: show icons as header and centre align text for duration column in VideoList
Prince Gupta
git at videolan.org
Fri Jun 19 09:54:06 CEST 2020
vlc | branch: master | Prince Gupta <guptaprince8832 at gmail.com> | Wed Jun 3 18:26:56 2020 +0530| [8f9766c18166085288eb001b6a7ad6e2b40cd996] | committer: Pierre Lamot
qml: show icons as header and centre align text for duration column in VideoList
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8f9766c18166085288eb001b6a7ad6e2b40cd996
---
modules/gui/qt/medialibrary/qml/VideoListDisplay.qml | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/modules/gui/qt/medialibrary/qml/VideoListDisplay.qml b/modules/gui/qt/medialibrary/qml/VideoListDisplay.qml
index 84fccc576b..4c2702f386 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: tableColumns.timeColDelegate, headerDelegate: tableColumns.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: tableColumns.timeColDelegate, headerDelegate: tableColumns.timeHeaderDelegate },
{ isPrimary: true, criteria: "title", width: VLCStyle.colWidth(4), text: i18n.qtr("Title"), showSection: "title" },
{ type: "contextButton", width: VLCStyle.colWidth(1) }
]
@@ -169,4 +169,8 @@ Widgets.KeyNavigableTableView {
else
defaultNavigationRight(index)
}
+
+ Widgets.TableColumns {
+ id: tableColumns
+ }
}
More information about the vlc-commits
mailing list