[vlc-devel] [PATCH 10/19] qml: add media adders to playlist contextmenu

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


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

diff --git a/modules/gui/qt/playlist/qml/PlaylistListView.qml b/modules/gui/qt/playlist/qml/PlaylistListView.qml
index b56030ffa3..59f98414bb 100644
--- a/modules/gui/qt/playlist/qml/PlaylistListView.qml
+++ b/modules/gui/qt/playlist/qml/PlaylistListView.qml
@@ -165,6 +165,38 @@ Widgets.NavigableFocusScope {
 
             MenuSeparator { }
 
+            Widgets.MenuItemExt {
+                text: i18n.qtr("Add File...")
+                icon.source: "qrc:/buttons/playlist/playlist_add.svg"
+                icon.width: VLCStyle.icon_small
+                icon.height: VLCStyle.icon_small
+                onTriggered: {
+                    dialogProvider.simpleOpenDialog(false)
+                }
+            }
+
+            Widgets.MenuItemExt {
+                text: i18n.qtr("Add Directory...")
+                icon.source: "qrc:/buttons/playlist/playlist_add.svg"
+                icon.width: VLCStyle.icon_small
+                icon.height: VLCStyle.icon_small
+                onTriggered: {
+                    dialogProvider.PLAppendDir()
+                }
+            }
+
+            Widgets.MenuItemExt {
+                text: i18n.qtr("Advanced Open...")
+                icon.source: "qrc:/buttons/playlist/playlist_add.svg"
+                icon.width: VLCStyle.icon_small
+                icon.height: VLCStyle.icon_small
+                onTriggered: {
+                    dialogProvider.PLAppendDialog()
+                }
+            }
+
+            MenuSeparator { }
+
             Widgets.MenuItemExt {
                 text: i18n.qtr("Save Playlist to File...")
                 onTriggered: {
-- 
2.25.1



More information about the vlc-devel mailing list