[vlc-commits] Qt: activate the renderer dialog via the menu
Steve Lhomme
git at videolan.org
Tue May 31 14:42:14 CEST 2016
vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Tue May 31 13:08:53 2016 +0200| [41457d44045e98da018432411931f6574c6fd6c2] | committer: Jean-Baptiste Kempf
Qt: activate the renderer dialog via the menu
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=41457d44045e98da018432411931f6574c6fd6c2
---
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() ),
"" );
More information about the vlc-commits
mailing list