Commit 128b8fdb authored by Clément Stenac's avatar Clément Stenac

Don't forget to reset slider position

parent 0cc8937f
...@@ -43,16 +43,12 @@ InputSlider::InputSlider( Qt::Orientation q,QWidget *_parent ) : ...@@ -43,16 +43,12 @@ InputSlider::InputSlider( Qt::Orientation q,QWidget *_parent ) :
void InputSlider::setPosition( float pos, int a, int b ) void InputSlider::setPosition( float pos, int a, int b )
{ {
if( pos == 0.0 ) if( pos == 0.0 )
{
setEnabled( false ); setEnabled( false );
}
else else
{
setEnabled( true ); setEnabled( true );
mymove = true; mymove = true;
setValue( (int)(pos * 1000.0 ) ); setValue( (int)(pos * 1000.0 ) );
mymove = false; mymove = false;
}
} }
void InputSlider::userDrag( int new_value ) void InputSlider::userDrag( int new_value )
......
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