createSystray();
if( config_GetInt( p_intf, "qt-minimal-view" ) )
- toggleMenus();
+ toggleMinimalView();
/* Init input manager */
MainInputManager::getInstance( p_intf );
}
#endif
-void MainInterface::toggleMenus()
+void MainInterface::toggleMinimalView()
{
+ TOGGLEV( menuBar() );
TOGGLEV( controls );
TOGGLEV( statusBar() );
updateGeometry();
void MainInterface::keyPressEvent( QKeyEvent *e )
{
+ if( ( e->modifiers() & Qt::ControlModifier ) && ( e->key() & Qt::Key_H )
+ && menuBar()->isHidden() )
+ {
+ toggleMinimalView();
+ e->accept();
+ }
+
int i_vlck = qtEventToVLCKey( e );
if( i_vlck >= 0 )
{
void customEvent( QEvent *);
public slots:
void undockPlaylist();
- void toggleMenus();
+ void toggleMinimalView();
void togglePlaylist();
void toggleUpdateSystrayMenu();
void toggleAdvanced();
{
/* Minimal View */
QAction *action=menu->addAction( qtr( "Minimal View..." ), mi,
- SLOT( toggleMenus() ), qtr( "Ctrl+H" ) );
+ SLOT( toggleMinimalView() ), qtr( "Ctrl+H" ) );
+ //FIXME: remove useless thing. But keep it until the release, pls.
action->setCheckable( true );
- if( mi->getControlsVisibilityStatus() & CONTROLS_VISIBLE )
+ if( mi->getControlsVisibilityStatus() & CONTROLS_VISIBLE )
action->setChecked( true );
/* Advanced Controls */