[vlc-commits] Qt: fix volume alignment in native look
Jean-Baptiste Kempf
git at videolan.org
Sat Sep 28 21:15:30 CEST 2013
vlc/vlc-2.1 | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sat Sep 28 21:07:57 2013 +0200| [4c8e7344a8aef6cd34fe7c64c4f55ef3b1016f21] | committer: Jean-Baptiste Kempf
Qt: fix volume alignment in native look
As reported on Reddit
(cherry picked from commit 586296da6062c40ed7b5644080b8cf80451b3b28)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.1.git/?a=commit;h=4c8e7344a8aef6cd34fe7c64c4f55ef3b1016f21
---
modules/gui/qt4/components/controller_widget.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/gui/qt4/components/controller_widget.cpp b/modules/gui/qt4/components/controller_widget.cpp
index 1b3f478..aad30a2 100644
--- a/modules/gui/qt4/components/controller_widget.cpp
+++ b/modules/gui/qt4/components/controller_widget.cpp
@@ -64,7 +64,7 @@ SoundWidget::SoundWidget( QWidget *_parent, intf_thread_t * _p_intf,
volumeControlWidget = NULL;
/* And add the label */
- layout->addWidget( volMuteLabel, 0, Qt::AlignBottom );
+ layout->addWidget( volMuteLabel, 0, b_shiny? Qt::AlignBottom : Qt::AlignCenter );
}
else
{
@@ -105,7 +105,7 @@ SoundWidget::SoundWidget( QWidget *_parent, intf_thread_t * _p_intf,
if( b_special )
subLayout->addWidget( volumeSlider );
else
- layout->addWidget( volumeSlider, 0, Qt::AlignBottom );
+ layout->addWidget( volumeSlider, 0, b_shiny? Qt::AlignBottom : Qt::AlignCenter );
/* Set the volume from the config */
float volume = playlist_VolumeGet( THEPL );
More information about the vlc-commits
mailing list