[vlc-commits] Qt: fix small quirk when adapting the equalizer values

Jean-Baptiste Kempf git at videolan.org
Sat Dec 3 16:28:29 CET 2011


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sat Dec  3 16:28:00 2011 +0100| [1630833f20b595f6a594e71ab3c177705374d912] | committer: Jean-Baptiste Kempf

Qt: fix small quirk when adapting the equalizer values

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1630833f20b595f6a594e71ab3c177705374d912
---

 modules/gui/qt4/components/extended_panels.cpp |    3 ++-
 modules/gui/qt4/ui/equalizer.ui                |    2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/modules/gui/qt4/components/extended_panels.cpp b/modules/gui/qt4/components/extended_panels.cpp
index 17dc058..1fd21ea 100644
--- a/modules/gui/qt4/components/extended_panels.cpp
+++ b/modules/gui/qt4/components/extended_panels.cpp
@@ -911,9 +911,10 @@ Equalizer::Equalizer( intf_thread_t *_p_intf, QWidget *_parent ) :
         bands[i] = new QSlider( Qt::Vertical );
         bands[i]->setMaximum( 400 );
         bands[i]->setValue( 200 );
+        bands[i]->setMinimumWidth(34);
         CONNECT( bands[i], valueChanged( int ), this, setCoreBands() );
 
-        band_texts[i] = new QLabel( band_frequencies[i] + "\n0.0dB" );
+        band_texts[i] = new QLabel( band_frequencies[i] + "\n00.0dB" );
         band_texts[i]->setFont( smallFont );
 
         grid->addWidget( bands[i], 0, i );
diff --git a/modules/gui/qt4/ui/equalizer.ui b/modules/gui/qt4/ui/equalizer.ui
index c180bcd..98914d7 100644
--- a/modules/gui/qt4/ui/equalizer.ui
+++ b/modules/gui/qt4/ui/equalizer.ui
@@ -113,7 +113,7 @@
       <enum>Qt::Horizontal</enum>
      </property>
      <property name="sizeType">
-      <enum>QSizePolicy::Fixed</enum>
+      <enum>QSizePolicy::Preferred</enum>
      </property>
      <property name="sizeHint" stdset="0">
       <size>



More information about the vlc-commits mailing list