mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-17 03:24:15 +02:00
* Boundaries are set by QSlider already.
This commit is contained in:
@@ -72,19 +72,15 @@ SeekSlider::mousePressEvent( QMouseEvent* event )
|
|||||||
void
|
void
|
||||||
SeekSlider::setValue( int value )
|
SeekSlider::setValue( int value )
|
||||||
{
|
{
|
||||||
int newVal = value;
|
// int newVal = qBound( minimum(), value, maximum() );
|
||||||
if ( value > maximum() )
|
|
||||||
newVal = maximum();
|
|
||||||
if ( value < minimum() )
|
|
||||||
newVal = minimum();
|
|
||||||
|
|
||||||
if ( !m_timeLine || sender() != m_timeLine )
|
if ( !m_timeLine || sender() != m_timeLine )
|
||||||
{
|
{
|
||||||
QSlider::setValue( newVal );
|
QSlider::setValue( value );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
blockSignals( true );
|
blockSignals( true );
|
||||||
QSlider::setValue( newVal );
|
QSlider::setValue( value );
|
||||||
blockSignals( false );
|
blockSignals( false );
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user