Commit bafe1e39 authored by Francois Cartegnie's avatar Francois Cartegnie

Qt: SeekStyle: fix boundaries truncated handle glitch

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