[vlc-commits] qml: implement 'Stream' playlist context menu button
Fatih Uzunoglu
git at videolan.org
Tue Aug 18 17:15:11 CEST 2020
vlc | branch: master | Fatih Uzunoglu <fuzun54 at outlook.com> | Wed Jul 15 20:29:57 2020 +0300| [a3112b4a54b83579f0c34cbfe028313293987fde] | committer: Pierre Lamot
qml: implement 'Stream' playlist context menu button
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a3112b4a54b83579f0c34cbfe028313293987fde
---
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"
More information about the vlc-commits
mailing list