[vlc-devel] [PATCH 36/39] qml: allow sorting in NetworkBrowseDisplay
Prince Gupta
guptaprince8832 at gmail.com
Thu Jan 7 11:50:32 UTC 2021
---
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 }]);
--
2.25.1
More information about the vlc-devel
mailing list