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:
parent
6d003028c3
commit
9d77f20710
@ -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 );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user