Commit 0e4fa2de authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

qt4 - HideMenus change position. Still don't know whether we will keep this one.

parent 8a0eed5f
......@@ -501,13 +501,6 @@ void DialogsProvider::doInteraction( intf_dialog_args_t *p_arg )
}
}
void DialogsProvider::hideMenus()
{
/* TODO
* Simplify the main Interface
*/
}
void DialogsProvider::switchToSkins()
{
var_SetString( p_intf, "intf-switch", "skins2" );
......
......@@ -166,7 +166,6 @@ public slots:
void openPlaylist();
void savePlaylist();
void hideMenus();
void switchToSkins();
void quit();
};
......
......@@ -747,6 +747,13 @@ void MainInterface::undockPlaylist()
}
}
void MainInterface::toggleMenus()
{
if( menuBar()->isVisible() ) menuBar()->hide();
else menuBar()->show();
msg_Dbg( p_intf, "I was there: \\_o<~~ coin coin" );
}
void MainInterface::customEvent( QEvent *event )
{
if( event->type() == PLDockEvent_Type )
......
......@@ -118,6 +118,7 @@ private:
void customEvent( QEvent *);
public slots:
void undockPlaylist();
void toggleMenus();
void playlist();
void toggleUpdateSystrayMenu();
private slots:
......
......@@ -289,7 +289,8 @@ QMenu *QVLCMenu::ToolsMenu( intf_thread_t *p_intf, MainInterface *mi,
adv->setCheckable( true );
if( adv_controls_enabled ) adv->setChecked( true );
DP_SADD( menu, qtr( "Hide Menus..." ), "","",hideMenus(), "Ctrl+H" );
menu->addAction( qtr( "Hide Menus..." ), mi, SLOT( toggleMenus() ),
qtr( "Ctrl+H") );
menu->addSeparator();
#if 0 /* For Visualisations. Not yet working */
......
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