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