[vlc-devel] commit: Qt: let the native sound slider manage 200% and 400% of volume. ( Jean-Baptiste Kempf )

git version control git at videolan.org
Thu Jan 22 00:30:19 CET 2009


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Jan 22 00:29:41 2009 +0100| [2c688720b3e99305ff96b913938e27000f170997] | committer: Jean-Baptiste Kempf 

Qt: let the native sound slider manage 200% and 400% of volume.

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

 modules/gui/qt4/components/controller_widget.cpp |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/modules/gui/qt4/components/controller_widget.cpp b/modules/gui/qt4/components/controller_widget.cpp
index 01d8e4e..5f424d2 100644
--- a/modules/gui/qt4/components/controller_widget.cpp
+++ b/modules/gui/qt4/components/controller_widget.cpp
@@ -61,6 +61,8 @@ SoundWidget::SoundWidget( QWidget *_parent, intf_thread_t * _p_intf,
     {
         volumeSlider = new QSlider( this );
         volumeSlider->setOrientation( Qt::Horizontal );
+        volumeSlider->setMaximum( config_GetInt( p_intf, "qt-volume-complete" )
+                                  ? 400 : 200 );
     }
     volumeSlider->setMaximumSize( QSize( 200, 40 ) );
     volumeSlider->setMinimumSize( QSize( 85, 30 ) );




More information about the vlc-devel mailing list