Qt4 - Make the default interface smaller.
authorJean-Baptiste Kempf <jb@videolan.org>
Sun, 16 Dec 2007 00:35:25 +0000 (00:35 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Sun, 16 Dec 2007 00:35:25 +0000 (00:35 +0000)
modules/gui/qt4/components/interface_widgets.cpp
modules/gui/qt4/main_interface.cpp

index f9fe06a..20c86c2 100644 (file)
@@ -505,6 +505,7 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i,
     controlLayout->setColumnStretch( 7, 0 );
     controlLayout->setColumnStretch( 8, 0 );
     controlLayout->setColumnStretch( 9, 0 );
+
     /*
      * Other first Line buttons
      */
@@ -529,6 +530,7 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i,
     controlLayout->addWidget( extSettingsButton, 3, 12, Qt::AlignBottom );
 
     controlLayout->setColumnStretch( 13, 0 );
+    controlLayout->setColumnMinimumWidth( 13, 24 );
     controlLayout->setColumnStretch( 14, 5 );
 
     /* Volume */
index 4f64d38..537ab8f 100644 (file)
@@ -286,6 +286,7 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
     CONNECT( controls, advancedControlsToggled( bool ), 
              this, doComponentsUpdate() );
 
+    resize( settings->value( "size", QSize( 300, 80 ) ).toSize() );
     updateGeometry();
     settings->endGroup();
 }
@@ -301,6 +302,7 @@ MainInterface::~MainInterface()
     settings->setValue( "adv-controls", 
                         getControlsVisibilityStatus() & CONTROLS_ADVANCED );
     settings->setValue( "pos", pos() );
+    settings->setValue( "size", size() );
 
     settings->endGroup();
     delete settings;