Commit 61733f0e authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: now that you don't control the controls size anymore, be careful to resize...

Qt: now that you don't control the controls size anymore, be careful to resize the controller when buttons show up.

Close #2487.
parent af4d8375
...@@ -479,6 +479,8 @@ QFrame *AbstractController::discFrame() ...@@ -479,6 +479,8 @@ QFrame *AbstractController::discFrame()
sectionNext() ); sectionNext() );
CONNECT( menuButton, clicked(), THEMIM->getIM(), CONNECT( menuButton, clicked(), THEMIM->getIM(),
sectionMenu() ); sectionMenu() );
connect( THEMIM->getIM(), SIGNAL( titleChanged( bool ) ),
this, SIGNAL( sizeChanged() ) );
return discFrame; return discFrame;
} }
......
...@@ -163,6 +163,7 @@ signals: ...@@ -163,6 +163,7 @@ signals:
void inputPlaying( bool ); /// This might be usefull in the IM ? void inputPlaying( bool ); /// This might be usefull in the IM ?
void inputIsRecordable( bool ); /// same ? void inputIsRecordable( bool ); /// same ?
void inputIsTrickPlayable( bool ); /// same ? void inputIsTrickPlayable( bool ); /// same ?
void sizeChanged();
}; };
/* Advanced Button Bar */ /* Advanced Button Bar */
......
...@@ -426,6 +426,8 @@ void MainInterface::handleMainUi( QSettings *settings ) ...@@ -426,6 +426,8 @@ void MainInterface::handleMainUi( QSettings *settings )
settings->value( "adv-controls", false ).toBool(), this ); settings->value( "adv-controls", false ).toBool(), this );
CONNECT( controls, advancedControlsToggled( bool ), CONNECT( controls, advancedControlsToggled( bool ),
this, doComponentsUpdate() ); this, doComponentsUpdate() );
CONNECT( controls, sizeChanged(),
this, doComponentsUpdate() );
inputC = new InputControlsWidget( p_intf, this ); inputC = new InputControlsWidget( p_intf, this );
/* Visualisation */ /* Visualisation */
......
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