Commit 427f0561 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt4 - Fix the "sound slider moves at first time, even If I didn't click it" bug.

parent 6a23b418
...@@ -122,6 +122,7 @@ SoundSlider::SoundSlider( QWidget *_parent, int _i_step, bool b_hard ) ...@@ -122,6 +122,7 @@ SoundSlider::SoundSlider( QWidget *_parent, int _i_step, bool b_hard )
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, b_hard ? (2 * SOUNDMAX) : SOUNDMAX );
setMouseTracking( true ); setMouseTracking( true );
b_sliding = false;
pixOutside = QPixmap( ":/pixmaps/volume-slider-outside.png" ); pixOutside = QPixmap( ":/pixmaps/volume-slider-outside.png" );
......
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