Commit 02631b2e authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: code simplification

parent 7066f349
......@@ -387,10 +387,10 @@ void SeekSlider::paintEvent( QPaintEvent *event )
switch ( orientation() )
{
case Qt::Horizontal:
barRect.setHeight( handleSize().height() /2 );
barRect.setHeight( height() /2 );
break;
case Qt::Vertical:
barRect.setWidth( handleSize().width() /2 );
barRect.setWidth( width() /2 );
break;
}
......
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