[vlc-devel] [PATCH] Qt: Enforce toolbars size policies

Francois Cartegnie fcvlcdev at free.fr
Mon Mar 22 17:00:19 CET 2010


sequel to commit fabb1d71be480f06295f5fc8f562bc7d11c002b5
---
 modules/gui/qt4/main_interface.cpp |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/modules/gui/qt4/main_interface.cpp b/modules/gui/qt4/main_interface.cpp
index 5b1fa63..965dcda 100644
--- a/modules/gui/qt4/main_interface.cpp
+++ b/modules/gui/qt4/main_interface.cpp
@@ -378,11 +378,13 @@ void MainInterface::createMainWidget( QSettings *settings )
     /* Create the CONTROLS Widget */
     controls = new ControlsWidget( p_intf,
                    settings->value( "adv-controls", false ).toBool(), this );
+    controls->setSizePolicy( QSizePolicy::MinimumExpanding, QSizePolicy::Maximum );
     CONNECT( controls, advancedControlsToggled( bool ),
              this, adaptGeometry() );
     CONNECT( controls, sizeChanged(),
              this, adaptGeometry() );
     inputC = new InputControlsWidget( p_intf, this );
+    inputC->setSizePolicy( QSizePolicy::MinimumExpanding, QSizePolicy::Maximum );
 
     mainLayout->insertWidget( 2, inputC );
     mainLayout->insertWidget( settings->value( "ToolbarPos", 0 ).toInt() ? 0: 3,
-- 
1.6.4.4




More information about the vlc-devel mailing list