Commit 83e252bb authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: kill a fixme for Fullscreen Control recreation

parent 776e49e2
...@@ -339,14 +339,20 @@ MainInterface::~MainInterface() ...@@ -339,14 +339,20 @@ MainInterface::~MainInterface()
*****************************/ *****************************/
void MainInterface::recreateToolbars() void MainInterface::recreateToolbars()
{ {
// FIXME: do the same for the FSC
settings->beginGroup( "MainWindow" ); settings->beginGroup( "MainWindow" );
delete controls; delete controls;
delete inputC; delete inputC;
controls = new ControlsWidget( p_intf, false, this ); /* FIXME */ controls = new ControlsWidget( p_intf, false, this );
inputC = new InputControlsWidget( p_intf, this ); inputC = new InputControlsWidget( p_intf, this );
if( fullscreenControls )
{
delete fullscreenControls;
fullscreenControls = new FullscreenControllerWidget( p_intf, this );
CONNECT( fullscreenControls, keyPressed( QKeyEvent * ),
this, handleKeyPress( QKeyEvent * ) );
}
mainLayout->insertWidget( 2, inputC ); mainLayout->insertWidget( 2, inputC );
mainLayout->insertWidget( settings->value( "ToolbarPos", 0 ).toInt() ? 0: 3, mainLayout->insertWidget( settings->value( "ToolbarPos", 0 ).toInt() ? 0: 3,
controls ); controls );
......
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