[vlc-commits] Qt: better alignment for eq bands

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


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Apr 23 13:44:50 2012 +0200| [46c02e8545d3112f2b34b9a5ddb571afbef66be2] | committer: Jean-Baptiste Kempf

Qt: better alignment for eq bands

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

 modules/gui/qt4/components/extended_panels.cpp |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/modules/gui/qt4/components/extended_panels.cpp b/modules/gui/qt4/components/extended_panels.cpp
index 466e800..508f1f6 100644
--- a/modules/gui/qt4/components/extended_panels.cpp
+++ b/modules/gui/qt4/components/extended_panels.cpp
@@ -929,14 +929,13 @@ 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(40);
+        bands[i]->setMinimumWidth(36);
         CONNECT( bands[i], valueChanged( int ), this, setCoreBands() );
 
+        QString val = QString("%1").arg( 0.0, 5, 'f', 1 );
         band_texts[i] = new QLabel( (b_vlcBands ? vlc_band_frequencies[i]
-                                               : iso_band_frequencies[i]) + "\n0.0dB" );
+                                               : iso_band_frequencies[i]) + "\n" + val + "dB" );
         band_texts[i]->setFont( smallFont );
-        band_texts[i]->setAlignment( Qt::AlignRight );
-        bands[i]->setMinimumWidth(40);
 
         grid->addWidget( bands[i], 0, i );
         grid->addWidget( band_texts[i], 1, i );



More information about the vlc-commits mailing list