X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=modules%2Fgui%2Fqt4%2Fmain_interface.cpp;h=a7dcbf0c6c9be8822da7b748a185866abfe3e7e3;hb=c6b0458c5df9d07d8342498bca173563b465dc79;hp=a95701a43335a0cb5c61567136697c7c54308521;hpb=62fae3a7cab589b5c87ea6de3e65b5f698a87c9b;p=vlc diff --git a/modules/gui/qt4/main_interface.cpp b/modules/gui/qt4/main_interface.cpp index a95701a433..a7dcbf0c6c 100644 --- a/modules/gui/qt4/main_interface.cpp +++ b/modules/gui/qt4/main_interface.cpp @@ -228,10 +228,6 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf ) CONNECT( fullscreenControls, advancedControlsToggled( bool ), this, doComponentsUpdate() ); - CONNECT( THEMIM->getIM(), inputUnset(), - fullscreenControls, unregFullscreenCallback() ); - - /* Size and placement of interface */ QVLCTools::restoreWidgetPosition(settings,this,QSize(350,60)); @@ -387,16 +383,16 @@ void MainInterface::handleMainUi( QSettings *settings ) mainLayout->setMargin( 0 ); /* Create the CONTROLS Widget */ - /* bool b_shiny = config_GetInt( p_intf, "qt-blingbling" ); */ + bool b_shiny = config_GetInt( p_intf, "qt-blingbling" ); controls = new ControlsWidget( p_intf, this, settings->value( "adv-controls", false ).toBool(), - config_GetInt( p_intf, "qt-blingbling" ) ); + b_shiny ); /* Create the FULLSCREEN CONTROLS Widget */ /* bool b_shiny = config_GetInt( p_intf, "qt-blingbling" ); */ fullscreenControls = new FullscreenControllerWidget( p_intf, this, settings->value( "adv-controls", false ).toBool(), - config_GetInt( p_intf, "qt-blingbling" ) ); + b_shiny ); /* Add the controls Widget to the main Widget */ mainLayout->insertWidget( 0, controls, 0, Qt::AlignBottom ); @@ -521,7 +517,7 @@ int MainInterface::privacyDialog( QList controls ) CONFIG_GENERIC_NOBOOL( "qt-updates-days", Integer ); line++; #endif - QPushButton *ok = new QPushButton( qtr( "Ok" ) ); + QPushButton *ok = new QPushButton( qtr( "OK" ) ); gLayout->addWidget( ok, 2, 2 ); @@ -682,12 +678,15 @@ void *MainInterface::requestVideo( vout_thread_t *p_nvout, int *pi_x, // emit askVideoToResize( *pi_width, *pi_height ); emit askUpdate(); + + fullscreenControls->attachVout( p_nvout ); } return ret; } -void MainInterface::releaseVideo( void *p_win ) +void MainInterface::releaseVideo( vout_thread_t *p_vout, void *p_win ) { + fullscreenControls->detachVout( p_vout ); emit askReleaseVideo( p_win ); } @@ -797,6 +796,8 @@ void MainInterface::undockPlaylist() void MainInterface::toggleMinimalView() { + /* HACK for minimalView, see menus.cpp */ + if( !menuBar()->isVisible() ) QVLCMenu::minimalViewAction->toggle(); TOGGLEV( menuBar() ); TOGGLEV( controls ); TOGGLEV( statusBar() );