[vlc-commits] Qt: SoundSlider: fix visibility warning

Francois Cartegnie git at videolan.org
Fri Mar 2 17:36:10 CET 2012


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Mar  2 17:21:40 2012 +0100| [15d1efaea5543ff06d5bb0fed76356d676742576] | committer: Francois Cartegnie

Qt: SoundSlider: fix visibility warning

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

 modules/gui/qt4/util/input_slider.cpp |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/modules/gui/qt4/util/input_slider.cpp b/modules/gui/qt4/util/input_slider.cpp
index 3fdc4df..d45a0e4 100644
--- a/modules/gui/qt4/util/input_slider.cpp
+++ b/modules/gui/qt4/util/input_slider.cpp
@@ -717,16 +717,16 @@ void SoundSlider::setMuted( bool m )
 void SoundSlider::paintEvent( QPaintEvent *e )
 {
     QPainter painter( this );
-    QPixmap *pixGradient;
+    QPixmap *paintGradient;
     if (b_isMuted)
-        pixGradient = &this->pixGradient2;
+        paintGradient = &this->pixGradient2;
     else
-        pixGradient = &this->pixGradient;
+        paintGradient = &this->pixGradient;
 
     const int offset = int( ( WLENGTH * value() + 100 ) / maximum() ) + paddingL;
 
-    const QRectF boundsG( 0, 0, offset , pixGradient->height() );
-    painter.drawPixmap( boundsG, *pixGradient, boundsG );
+    const QRectF boundsG( 0, 0, offset , paintGradient->height() );
+    painter.drawPixmap( boundsG, *paintGradient, boundsG );
 
     const QRectF boundsO( 0, 0, pixOutside.width(), pixOutside.height() );
     painter.drawPixmap( boundsO, pixOutside, boundsO );



More information about the vlc-commits mailing list