[vlc-devel] [PATCH 2/2] qml: expose extensions in view menu
Sagar Kohli
kohli.sagar2 at gmail.com
Sat Aug 31 14:54:40 CEST 2019
---
modules/gui/qt/qml/menus/ViewMenu.qml | 16 +++++++++++++++-
1 file changed, 15 insertions(+), 1 deletion(-)
diff --git a/modules/gui/qt/qml/menus/ViewMenu.qml b/modules/gui/qt/qml/menus/ViewMenu.qml
index d7bfd54e32..c2cbea4942 100644
--- a/modules/gui/qt/qml/menus/ViewMenu.qml
+++ b/modules/gui/qt/qml/menus/ViewMenu.qml
@@ -18,6 +18,8 @@
import QtQuick 2.11
import QtQuick.Controls 2.4
+import org.videolan.vlc 0.1
+
import "qrc:///style/"
import "qrc:///utils/" as Utils
@@ -78,6 +80,18 @@ Utils.MenuExt {
}
/* FIXME unimplemented
- extensions
+ sub-extensions menu
*/
+
+ ExtensionManager {
+ id: extensionMgr
+ mainCtx: mainctx
+ }
+ Repeater {
+ model: extensionMgr.extensions
+ Utils.MenuItemExt {
+ text: title
+ onTriggered: extensionMgr.activate(index)
+ }
+ }
}
--
2.17.1
More information about the vlc-devel
mailing list