Commit e2dcc023 authored by Pavlov Konstantin's avatar Pavlov Konstantin

QT4: Add a menu item to switch to WxWidgets if available.

parent 8be8be5e
......@@ -509,3 +509,8 @@ void DialogsProvider::switchToSkins()
{
var_SetString( p_intf, "intf-switch", "skins2" );
}
void DialogsProvider::switchToWx()
{
var_SetString( p_intf, "intf-switch", "wxwidgets" );
}
......@@ -183,6 +183,7 @@ public slots:
void saveAPlaylist();
void switchToSkins();
void switchToWx();
void quit();
};
......
......@@ -332,6 +332,11 @@ QMenu *QVLCMenu::InterfacesMenu( intf_thread_t *p_intf, QMenu *current )
menu->addSeparator();
menu->addAction( qtr( "Switch to skins" ), THEDP, SLOT( switchToSkins() ),
QString( "Ctrl+Z" ) );
if( module_Exists( VLC_OBJECT( p_intf ), "wxwidgets" ) )
{
menu->addAction( qtr( "Switch to WxWidgets" ), THEDP,
SLOT( switchToWx() ) );
}
}
CONNECT( menu, aboutToShow(), THEDP->menusUpdateMapper, map() );
......
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