Commit 33aa26b1 authored by Jean-Philippe Andre's avatar Jean-Philippe Andre Committed by Jean-Baptiste Kempf

Qt menu: use MenuFunc with InterfaceMenu

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 5ec2ab65
...@@ -311,6 +311,9 @@ QMenu *QVLCMenu::ToolsMenu( intf_thread_t *p_intf, ...@@ -311,6 +311,9 @@ QMenu *QVLCMenu::ToolsMenu( intf_thread_t *p_intf,
{ {
QMenu *intfmenu = InterfacesMenu( p_intf, menu ); QMenu *intfmenu = InterfacesMenu( p_intf, menu );
intfmenu->setTitle( qtr( "Add Interfaces" ) ); 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->addMenu( intfmenu );
menu->addSeparator(); menu->addSeparator();
} }
...@@ -377,8 +380,6 @@ QMenu *QVLCMenu::InterfacesMenu( intf_thread_t *p_intf, QMenu *current ) ...@@ -377,8 +380,6 @@ QMenu *QVLCMenu::InterfacesMenu( intf_thread_t *p_intf, QMenu *current )
QMenu *submenu = new QMenu( current ); QMenu *submenu = new QMenu( current );
QMenu *menu = Populate( p_intf, submenu, varnames, objects ); QMenu *menu = Populate( p_intf, submenu, varnames, objects );
CONNECT( menu, aboutToShow(), THEDP->menusUpdateMapper, map() );
THEDP->menusUpdateMapper->setMapping( menu, 4 );
return menu; return menu;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment