Commit a1d12e8c authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Small sound slider size issue, Not perfect yet, but soon to be.

parent 9b868a2f
...@@ -653,7 +653,7 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i, ...@@ -653,7 +653,7 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i,
volumeSlider->setOrientation( Qt::Horizontal ); volumeSlider->setOrientation( Qt::Horizontal );
} }
volumeSlider->setMaximumSize( QSize( 200, 40 ) ); volumeSlider->setMaximumSize( QSize( 200, 40 ) );
volumeSlider->setMinimumSize( QSize( 106, 30 ) ); volumeSlider->setMinimumSize( QSize( 85, 30 ) );
volumeSlider->setFocusPolicy( Qt::NoFocus ); volumeSlider->setFocusPolicy( Qt::NoFocus );
/* Set the volume from the config */ /* Set the volume from the config */
......
...@@ -135,7 +135,7 @@ SoundSlider::SoundSlider( QWidget *_parent, int _i_step, bool b_hard, ...@@ -135,7 +135,7 @@ SoundSlider::SoundSlider( QWidget *_parent, int _i_step, bool b_hard,
pixGradient = QPixmap( mask.size() ); pixGradient = QPixmap( mask.size() );
/* Gradient building from the preferences */ /* Gradient building from the preferences */
QLinearGradient gradient( paddingL, 3, WLENGTH + paddingL , 3 ); QLinearGradient gradient( paddingL, 2, WLENGTH + paddingL , 2 );
QStringList colorList = qfu( psz_colors ).split( ";" ); QStringList colorList = qfu( psz_colors ).split( ";" );
free( psz_colors ); free( psz_colors );
...@@ -199,7 +199,7 @@ void SoundSlider::mouseMoveEvent( QMouseEvent *event ) ...@@ -199,7 +199,7 @@ void SoundSlider::mouseMoveEvent( QMouseEvent *event )
if( b_sliding ) if( b_sliding )
{ {
QRect rect( paddingL - 15, -1, QRect rect( paddingL - 15, -1,
WLENGTH , WHEIGHT + 5 ); WLENGTH + 15 * 2 , WHEIGHT + 5 );
if( !rect.contains( event->pos() ) ) if( !rect.contains( event->pos() ) )
{ /* We are outside */ { /* We are outside */
if ( !b_outside ) if ( !b_outside )
......
...@@ -65,7 +65,7 @@ public: ...@@ -65,7 +65,7 @@ public:
virtual ~SoundSlider() {}; virtual ~SoundSlider() {};
protected: protected:
const static int paddingL = 3; const static int paddingL = 4;
const static int paddingR = 2; const static int paddingR = 2;
virtual void paintEvent(QPaintEvent *); virtual void paintEvent(QPaintEvent *);
virtual void wheelEvent( QWheelEvent *event ); virtual void wheelEvent( QWheelEvent *event );
......
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