Commit 25040764 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Qt4: remove constant parameter

parent a5feda88
...@@ -90,7 +90,6 @@ SoundWidget::SoundWidget( QWidget *_parent, intf_thread_t * _p_intf, ...@@ -90,7 +90,6 @@ SoundWidget::SoundWidget( QWidget *_parent, intf_thread_t * _p_intf,
{ {
volumeSlider = new SoundSlider( this, volumeSlider = new SoundSlider( this,
config_GetInt( p_intf, "volume-step" ), config_GetInt( p_intf, "volume-step" ),
false,
var_InheritString( p_intf, "qt-slider-colours" ) ); var_InheritString( p_intf, "qt-slider-colours" ) );
} }
else else
......
...@@ -435,12 +435,12 @@ bool SeekSlider::isAnimationRunning() const ...@@ -435,12 +435,12 @@ bool SeekSlider::isAnimationRunning() const
#define SOUNDMIN 0 // % #define SOUNDMIN 0 // %
#define SOUNDMAX 200 // % OR 400 ? #define SOUNDMAX 200 // % OR 400 ?
SoundSlider::SoundSlider( QWidget *_parent, int _i_step, bool b_hard, SoundSlider::SoundSlider( QWidget *_parent, int _i_step,
char *psz_colors ) char *psz_colors )
: QAbstractSlider( _parent ) : QAbstractSlider( _parent )
{ {
f_step = ( _i_step * 100 ) / AOUT_VOLUME_MAX ; f_step = ( _i_step * 100 ) / AOUT_VOLUME_MAX ;
setRange( SOUNDMIN, b_hard ? (2 * SOUNDMAX) : SOUNDMAX ); setRange( SOUNDMIN, SOUNDMAX );
setMouseTracking( true ); setMouseTracking( true );
isSliding = false; isSliding = false;
b_mouseOutside = true; b_mouseOutside = true;
......
...@@ -125,7 +125,7 @@ class SoundSlider : public QAbstractSlider ...@@ -125,7 +125,7 @@ class SoundSlider : public QAbstractSlider
{ {
Q_OBJECT Q_OBJECT
public: public:
SoundSlider( QWidget *_parent, int _i_step, bool b_softamp, char * ); SoundSlider( QWidget *_parent, int _i_step, char * );
void setMuted( bool ); /* Set Mute status */ void setMuted( bool ); /* Set Mute status */
protected: protected:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment