[vlc-commits] Qt: fix simple volume alignment
Jean-Baptiste Kempf
git at videolan.org
Mon May 2 21:27:00 CEST 2011
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon May 2 21:25:29 2011 +0200| [a5c08fda952e08ac5973f3e168bedc6b4c1a3f15] | committer: Jean-Baptiste Kempf
Qt: fix simple volume alignment
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a5c08fda952e08ac5973f3e168bedc6b4c1a3f15
---
modules/gui/qt4/components/controller_widget.cpp | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/modules/gui/qt4/components/controller_widget.cpp b/modules/gui/qt4/components/controller_widget.cpp
index e277015..6ad8825 100644
--- a/modules/gui/qt4/components/controller_widget.cpp
+++ b/modules/gui/qt4/components/controller_widget.cpp
@@ -62,6 +62,9 @@ SoundWidget::SoundWidget( QWidget *_parent, intf_thread_t * _p_intf,
{
volumeMenu = NULL; subLayout = NULL;
volumeControlWidget = NULL;
+
+ /* And add the label */
+ layout->addWidget( volMuteLabel, 0, Qt::AlignBottom );
}
else
{
@@ -76,10 +79,10 @@ SoundWidget::SoundWidget( QWidget *_parent, intf_thread_t * _p_intf,
QWidgetAction *widgetAction = new QWidgetAction( volumeControlWidget );
widgetAction->setDefaultWidget( volumeControlWidget );
volumeMenu->addAction( widgetAction );
- }
- /* And add the label */
- layout->addWidget( volMuteLabel, 0, Qt::AlignBottom );
+ /* And add the label */
+ layout->addWidget( volMuteLabel );
+ }
/* Slider creation: shiny or clean */
if( b_shiny )
More information about the vlc-commits
mailing list