[vlc-commits] Qt: better alignment for equalizer texts
Jean-Baptiste Kempf
git at videolan.org
Mon Apr 23 13:10:29 CEST 2012
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Apr 23 13:09:58 2012 +0200| [4d1016ae2b47c56f55af7aea4825d375ed899cbd] | committer: Jean-Baptiste Kempf
Qt: better alignment for equalizer texts
Ref #5980
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4d1016ae2b47c56f55af7aea4825d375ed899cbd
---
modules/gui/qt4/components/extended_panels.cpp | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/modules/gui/qt4/components/extended_panels.cpp b/modules/gui/qt4/components/extended_panels.cpp
index ec1f12a..466e800 100644
--- a/modules/gui/qt4/components/extended_panels.cpp
+++ b/modules/gui/qt4/components/extended_panels.cpp
@@ -1,11 +1,12 @@
/*****************************************************************************
* extended_panels.cpp : Extended controls panels
****************************************************************************
- * Copyright (C) 2006-2008 the VideoLAN team
+ * Copyright (C) 2006-2012 the VideoLAN team
* $Id$
*
* Authors: Clément Stenac <zorglub at videolan.org>
* Antoine Cellerier <dionoea .t videolan d at t org>
+ * Jean-Baptiste Kempf <jb at videolan.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -928,12 +929,14 @@ 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(40);
CONNECT( bands[i], valueChanged( int ), this, setCoreBands() );
- band_texts[i] = new QLabel( b_vlcBands ? vlc_band_frequencies[i]
- : iso_band_frequencies[i] + "\n00.0dB" );
+ band_texts[i] = new QLabel( (b_vlcBands ? vlc_band_frequencies[i]
+ : iso_band_frequencies[i]) + "\n0.0dB" );
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