]> git.sesse.net Git - vlc/commitdiff
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 f9fe06a84c6082016d70c727565759fab1833549..20c86c2d094bc7cd9f70305dd96ea49488886e2a 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 4f64d38364f2b4e5e43b9dc45c80e364e98821e9..537ab8f7b82fda7388fd418bcfc5f498d3cdc312 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;