[vlc-devel] [PATCH 4/5] gui:qt: activate the renderer dialog via the menu
Steve Lhomme
robux4 at videolabs.io
Tue May 31 13:08:53 CEST 2016
---
modules/gui/qt/actions_manager.cpp | 3 +++
modules/gui/qt/actions_manager.hpp | 1 +
modules/gui/qt/menus.cpp | 5 +++++
3 files changed, 9 insertions(+)
diff --git a/modules/gui/qt/actions_manager.cpp b/modules/gui/qt/actions_manager.cpp
index eff40d9..89f5d22 100644
--- a/modules/gui/qt/actions_manager.cpp
+++ b/modules/gui/qt/actions_manager.cpp
@@ -93,6 +93,9 @@ void ActionsManager::doAction( int id_action )
if( p_intf->p_sys->p_mi )
p_intf->p_sys->p_mi->getFullscreenControllerWidget()->toggleFullwidth();
break;
+ case RENDERER_ACTION:
+ THEDP->rendererDialog(); break;
+ break;
default:
msg_Warn( p_intf, "Action not supported: %i", id_action );
break;
diff --git a/modules/gui/qt/actions_manager.hpp b/modules/gui/qt/actions_manager.hpp
index 20c10e0..cb3943a 100644
--- a/modules/gui/qt/actions_manager.hpp
+++ b/modules/gui/qt/actions_manager.hpp
@@ -59,6 +59,7 @@ typedef enum actionType_e
LOOP_ACTION,
INFO_ACTION,
OPEN_SUB_ACTION,
+ RENDERER_ACTION,
} actionType_e;
class ActionsManager : public QObject, public Singleton<ActionsManager>
diff --git a/modules/gui/qt/menus.cpp b/modules/gui/qt/menus.cpp
index 5555f0e..09a8892 100644
--- a/modules/gui/qt/menus.cpp
+++ b/modules/gui/qt/menus.cpp
@@ -428,6 +428,11 @@ QMenu *VLCMenuBar::ToolsMenu( intf_thread_t *p_intf, QMenu *menu )
"Ctrl+Shift+W" );
#endif
+#if defined(ENABLE_SOUT)
+ addDPStaticEntry( menu, qtr( I_MENU_RENDERER ), "", SLOT( rendererDialog() ),
+ "Ctrl+Shift+R" );
+#endif
+
addDPStaticEntry( menu, qtr( "Program Guide" ), "", SLOT( epgDialog() ),
"" );
--
2.7.0.windows.1
More information about the vlc-devel
mailing list