Commit bafe1e39 authored by Francois Cartegnie's avatar Francois Cartegnie

Qt: SeekStyle: fix boundaries truncated handle glitch

parent 3013997d
...@@ -48,10 +48,19 @@ int SeekStyle::pixelMetric( PixelMetric metric, const QStyleOption *option, cons ...@@ -48,10 +48,19 @@ int SeekStyle::pixelMetric( PixelMetric metric, const QStyleOption *option, cons
{ {
const QStyleOptionSlider *slider; const QStyleOptionSlider *slider;
if ( widget && metric == QStyle::PM_SliderThickness && ( slider = qstyleoption_cast<const QStyleOptionSlider *>( option ) ) ) if ( widget && ( slider = qstyleoption_cast<const QStyleOptionSlider *>( option ) ) )
return widget->minimumSize().height(); {
else switch( metric )
return QProxyStyle::pixelMetric( metric, option, widget ); {
case QStyle::PM_SliderThickness:
case QStyle::PM_SliderLength:
return widget->minimumSize().height();
default:
break;
}
}
return QProxyStyle::pixelMetric( metric, option, widget );
} }
void SeekStyle::drawComplexControl( ComplexControl cc, const QStyleOptionComplex *option, QPainter *painter, const QWidget *widget ) const void SeekStyle::drawComplexControl( ComplexControl cc, const QStyleOptionComplex *option, QPainter *painter, const QWidget *widget ) const
......
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