]> git.sesse.net Git - vlc/commitdiff
Qt: now that you don't control the controls size anymore, be careful to resize the...
authorJean-Baptiste Kempf <jb@videolan.org>
Sat, 28 Feb 2009 19:45:11 +0000 (20:45 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Sat, 28 Feb 2009 19:46:17 +0000 (20:46 +0100)
Close #2487.

modules/gui/qt4/components/controller.cpp
modules/gui/qt4/components/controller.hpp
modules/gui/qt4/main_interface.cpp

index eadaf8bcc051afe48a0eda026b765754ac1cb46b..42a590c6ab16be3f83ec22b7d3b2aecc2e1fb6b2 100644 (file)
@@ -479,6 +479,8 @@ QFrame *AbstractController::discFrame()
             sectionNext() );
     CONNECT( menuButton, clicked(), THEMIM->getIM(),
             sectionMenu() );
+    connect( THEMIM->getIM(), SIGNAL( titleChanged( bool ) ),
+             this, SIGNAL( sizeChanged() ) );
 
     return discFrame;
 }
index a4de91ca57179778dd631d457591594dfa465d61..d3eafc29ab8068bd7fb659df9e6bd1d95b4b439f 100644 (file)
@@ -163,6 +163,7 @@ signals:
     void inputPlaying( bool ); /// This might be usefull in the IM ?
     void inputIsRecordable( bool ); /// same ?
     void inputIsTrickPlayable( bool ); /// same ?
+    void sizeChanged();
 };
 
 /* Advanced Button Bar */
index 1234634bb1188d12b1a17845653a8b94c4105b80..5c1c047d49491b8eb322a67bfa53b828b93a9492 100644 (file)
@@ -426,6 +426,8 @@ void MainInterface::handleMainUi( QSettings *settings )
                    settings->value( "adv-controls", false ).toBool(), this );
     CONNECT( controls, advancedControlsToggled( bool ),
              this, doComponentsUpdate() );
+    CONNECT( controls, sizeChanged(),
+             this, doComponentsUpdate() );
     inputC = new InputControlsWidget( p_intf, this );
 
         /* Visualisation */