[vlc-commits] qml: add sort model in VideoDisplay

Prince Gupta git at videolan.org
Thu Jan 14 14:42:37 UTC 2021


vlc | branch: master | Prince Gupta <guptaprince8832 at gmail.com> | Thu Dec 24 20:54:51 2020 +0530| [9315e1b47fcba933b245e4aee88a3829f7981140] | committer: Pierre Lamot

qml: add sort model in VideoDisplay

Signed-off-by: Pierre Lamot <pierre at videolabs.io>

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

 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) {



More information about the vlc-commits mailing list