Commit 15d1efae authored by Francois Cartegnie's avatar Francois Cartegnie

Qt: SoundSlider: fix visibility warning

parent b977c6e1
...@@ -717,16 +717,16 @@ void SoundSlider::setMuted( bool m ) ...@@ -717,16 +717,16 @@ void SoundSlider::setMuted( bool m )
void SoundSlider::paintEvent( QPaintEvent *e ) void SoundSlider::paintEvent( QPaintEvent *e )
{ {
QPainter painter( this ); QPainter painter( this );
QPixmap *pixGradient; QPixmap *paintGradient;
if (b_isMuted) if (b_isMuted)
pixGradient = &this->pixGradient2; paintGradient = &this->pixGradient2;
else else
pixGradient = &this->pixGradient; paintGradient = &this->pixGradient;
const int offset = int( ( WLENGTH * value() + 100 ) / maximum() ) + paddingL; const int offset = int( ( WLENGTH * value() + 100 ) / maximum() ) + paddingL;
const QRectF boundsG( 0, 0, offset , pixGradient->height() ); const QRectF boundsG( 0, 0, offset , paintGradient->height() );
painter.drawPixmap( boundsG, *pixGradient, boundsG ); painter.drawPixmap( boundsG, *paintGradient, boundsG );
const QRectF boundsO( 0, 0, pixOutside.width(), pixOutside.height() ); const QRectF boundsO( 0, 0, pixOutside.width(), pixOutside.height() );
painter.drawPixmap( boundsO, pixOutside, boundsO ); painter.drawPixmap( boundsO, pixOutside, boundsO );
......
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