vlc | branch: master | Jean-Baptiste Kempf <[email protected]> | Sat Sep 28 
21:07:57 2013 +0200| [586296da6062c40ed7b5644080b8cf80451b3b28] | committer: 
Jean-Baptiste Kempf

Qt: fix volume alignment in native look

As reported on Reddit

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

 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 );

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to