[vlc-commits] Qt: fix equalizer bands display

Jean-Baptiste Kempf git at videolan.org
Mon Apr 23 13:48:45 CEST 2012


vlc/vlc-2.0 | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Apr 23 13:48:42 2012 +0200| [8047362d4892903ef3260144cdbb598c62989b8e] | committer: Jean-Baptiste Kempf

Qt: fix equalizer bands display

Close #5980

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=8047362d4892903ef3260144cdbb598c62989b8e
---

 modules/gui/qt4/components/extended_panels.cpp |    5 +++--
 1 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 b2689fe..d439a13 100644
--- a/modules/gui/qt4/components/extended_panels.cpp
+++ b/modules/gui/qt4/components/extended_panels.cpp
@@ -921,10 +921,11 @@ 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);
+        bands[i]->setMinimumWidth(36);
         CONNECT( bands[i], valueChanged( int ), this, setCoreBands() );
 
-        band_texts[i] = new QLabel( band_frequencies[i] + "\n00.0dB" );
+        QString val = QString("%1").arg( 0.0, 5, 'f', 1 );
+        band_texts[i] = new QLabel( band_frequencies[i] + "\n" + val + "dB" );
         band_texts[i]->setFont( smallFont );
 
         grid->addWidget( bands[i], 0, i );



More information about the vlc-commits mailing list