[vlc-devel] [PATCH 16/19] qml: implement 'Stream' playlist context menu button

Fatih Uzunoglu fuzun54 at outlook.com
Wed Aug 12 23:17:23 CEST 2020


---
 modules/gui/qt/playlist/qml/PlaylistListView.qml | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/modules/gui/qt/playlist/qml/PlaylistListView.qml b/modules/gui/qt/playlist/qml/PlaylistListView.qml
index 87ef109cc8..736e2ffeba 100644
--- a/modules/gui/qt/playlist/qml/PlaylistListView.qml
+++ b/modules/gui/qt/playlist/qml/PlaylistListView.qml
@@ -147,6 +147,20 @@ Widgets.NavigableFocusScope {
                 }
             }
 
+            Widgets.MenuItemExt {
+                text: i18n.qtr("Stream")
+                icon.source: "qrc:/menu/stream.svg"
+                icon.width: VLCStyle.icon_small
+                icon.height: VLCStyle.icon_small
+                onTriggered: {
+                    var selection = contextMenu.model.getSelection()
+                    if (selection.length === 0)
+                        return
+
+                    dialogProvider.streamingDialog(selection.map(function(i) { return contextMenu.model.itemAt(i).url; }), false)
+                }
+            }
+
             Widgets.MenuItemExt {
                 text: i18n.qtr("Information...")
                 icon.source: "qrc:/menu/info.svg"
-- 
2.25.1



More information about the vlc-devel mailing list