[vlc-commits] qml: allow sorting in NetworkBrowseDisplay

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


vlc | branch: master | Prince Gupta <guptaprince8832 at gmail.com> | Thu Dec 24 22:30:01 2020 +0530| [141163f3835460c95f8390cdfb9759e33a5afde7] | committer: Pierre Lamot

qml: allow sorting in NetworkBrowseDisplay

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

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

 modules/gui/qt/network/qml/NetworkBrowseDisplay.qml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/modules/gui/qt/network/qml/NetworkBrowseDisplay.qml b/modules/gui/qt/network/qml/NetworkBrowseDisplay.qml
index 1b56856104..b7e8bfc291 100644
--- a/modules/gui/qt/network/qml/NetworkBrowseDisplay.qml
+++ b/modules/gui/qt/network/qml/NetworkBrowseDisplay.qml
@@ -40,6 +40,10 @@ Widgets.NavigableFocusScope {
     readonly property var currentIndex: view.currentItem.currentIndex
     //the index to "go to" when the view is loaded
     property var initialIndex: 0
+    property var sortModel: [
+        { text: i18n.qtr("Alphabetic"), criteria: "name"},
+        { text: i18n.qtr("Url"), criteria: "mrl" }
+    ]
 
     function changeTree(new_tree) {
         history.push(["mc", "network", { tree: new_tree }]);



More information about the vlc-commits mailing list