[vlc-devel] commit: Qt: now that you don't control the controls size anymore, be careful to resize the controller when buttons show up. ( Jean-Baptiste Kempf )
git version control
git at videolan.org
Sat Feb 28 20:46:24 CET 2009
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sat Feb 28 20:45:11 2009 +0100| [61733f0e1da307d34b66e8051f0fc1af59c41a33] | committer: Jean-Baptiste Kempf
Qt: now that you don't control the controls size anymore, be careful to resize the controller when buttons show up.
Close #2487.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=61733f0e1da307d34b66e8051f0fc1af59c41a33
---
modules/gui/qt4/components/controller.cpp | 2 ++
modules/gui/qt4/components/controller.hpp | 1 +
modules/gui/qt4/main_interface.cpp | 2 ++
3 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/modules/gui/qt4/components/controller.cpp b/modules/gui/qt4/components/controller.cpp
index eadaf8b..42a590c 100644
--- a/modules/gui/qt4/components/controller.cpp
+++ b/modules/gui/qt4/components/controller.cpp
@@ -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;
}
diff --git a/modules/gui/qt4/components/controller.hpp b/modules/gui/qt4/components/controller.hpp
index a4de91c..d3eafc2 100644
--- a/modules/gui/qt4/components/controller.hpp
+++ b/modules/gui/qt4/components/controller.hpp
@@ -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 */
diff --git a/modules/gui/qt4/main_interface.cpp b/modules/gui/qt4/main_interface.cpp
index 1234634..5c1c047 100644
--- a/modules/gui/qt4/main_interface.cpp
+++ b/modules/gui/qt4/main_interface.cpp
@@ -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 */
More information about the vlc-devel
mailing list