1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-13 20:39:57 +01:00

* Boundaries are set by QSlider already.

This commit is contained in:
Christian Muehlhaeuser 2012-04-07 09:54:00 +02:00
parent 6d003028c3
commit 9d77f20710

View File

@ -72,19 +72,15 @@ SeekSlider::mousePressEvent( QMouseEvent* event )
void
SeekSlider::setValue( int value )
{
int newVal = value;
if ( value > maximum() )
newVal = maximum();
if ( value < minimum() )
newVal = minimum();
// int newVal = qBound( minimum(), value, maximum() );
if ( !m_timeLine || sender() != m_timeLine )
{
QSlider::setValue( newVal );
QSlider::setValue( value );
return;
}
blockSignals( true );
QSlider::setValue( newVal );
QSlider::setValue( value );
blockSignals( false );
}