[vlc-devel] [PATCH 34/39] qml: add sort model in VideoDisplay
Prince Gupta
guptaprince8832 at gmail.com
Thu Jan 7 11:50:30 UTC 2021
---
modules/gui/qt/medialibrary/qml/VideoDisplay.qml | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/modules/gui/qt/medialibrary/qml/VideoDisplay.qml b/modules/gui/qt/medialibrary/qml/VideoDisplay.qml
index 782873e682..391f370ecf 100644
--- a/modules/gui/qt/medialibrary/qml/VideoDisplay.qml
+++ b/modules/gui/qt/medialibrary/qml/VideoDisplay.qml
@@ -35,6 +35,10 @@ Widgets.NavigableFocusScope {
property var initialIndex: 0
property alias contentModel: videoModel
+ property var sortModel: [
+ { text: i18n.qtr("Alphabetic"), criteria: "title"},
+ { text: i18n.qtr("Duration"), criteria: "duration_short" }
+ ]
navigationCancel: function() {
if (view.currentItem.currentIndex <= 0) {
--
2.25.1
More information about the vlc-devel
mailing list