[vlc-devel] commit: Qt menu: use MenuFunc with InterfaceMenu (Jean-Philippe Andre )
git version control
git at videolan.org
Tue Jun 17 05:36:12 CEST 2008
vlc | branch: master | Jean-Philippe Andre <jpeg at via.ecp.fr> | Mon Jun 16 16:30:41 2008 +0200| [33aa26b1b9d86ef711e120554f5001273020ecae]
Qt menu: use MenuFunc with InterfaceMenu
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=33aa26b1b9d86ef711e120554f5001273020ecae
---
modules/gui/qt4/menus.cpp | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/modules/gui/qt4/menus.cpp b/modules/gui/qt4/menus.cpp
index 1b4babe..f01f053 100644
--- a/modules/gui/qt4/menus.cpp
+++ b/modules/gui/qt4/menus.cpp
@@ -311,6 +311,9 @@ QMenu *QVLCMenu::ToolsMenu( intf_thread_t *p_intf,
{
QMenu *intfmenu = InterfacesMenu( p_intf, menu );
intfmenu->setTitle( qtr( "Add Interfaces" ) );
+ MenuFunc *f = new MenuFunc( intfmenu, 4 );
+ CONNECT( intfmenu, aboutToShow(), THEDP->menusUpdateMapper, map() );
+ THEDP->menusUpdateMapper->setMapping( intfmenu, f );
menu->addMenu( intfmenu );
menu->addSeparator();
}
@@ -377,8 +380,6 @@ QMenu *QVLCMenu::InterfacesMenu( intf_thread_t *p_intf, QMenu *current )
QMenu *submenu = new QMenu( current );
QMenu *menu = Populate( p_intf, submenu, varnames, objects );
- CONNECT( menu, aboutToShow(), THEDP->menusUpdateMapper, map() );
- THEDP->menusUpdateMapper->setMapping( menu, 4 );
return menu;
}
More information about the vlc-devel
mailing list