]> git.sesse.net Git - vlc/commitdiff
Qt: kill a fixme for Fullscreen Control recreation
authorJean-Baptiste Kempf <jb@videolan.org>
Wed, 7 Apr 2010 13:28:50 +0000 (15:28 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 7 Apr 2010 13:28:50 +0000 (15:28 +0200)
modules/gui/qt4/main_interface.cpp

index 713ceb0f3994b8b15a144b09c1fa500582856485..4d66b4023849ede4e6a4b812d6056427f683ac4c 100644 (file)
@@ -339,14 +339,20 @@ MainInterface::~MainInterface()
  *****************************/
 void MainInterface::recreateToolbars()
 {
-    // FIXME: do the same for the FSC
     settings->beginGroup( "MainWindow" );
     delete controls;
     delete inputC;
 
-    controls = new ControlsWidget( p_intf, false, this ); /* FIXME */
+    controls = new ControlsWidget( p_intf, false, 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( settings->value( "ToolbarPos", 0 ).toInt() ? 0: 3,
                               controls );