Qt: let the native sound slider manage 200% and 400% of volume.
authorJean-Baptiste Kempf <jb@videolan.org>
Wed, 21 Jan 2009 23:29:41 +0000 (00:29 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 21 Jan 2009 23:29:41 +0000 (00:29 +0100)
modules/gui/qt4/components/controller_widget.cpp

index 01d8e4e..5f424d2 100644 (file)
@@ -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 ) );