Fix scrollarea corner widgets rendering

wilder-pre-rebase
Hugo Pereira Da Costa 12 years ago
parent 29a6af9738
commit 5692440242
  1. 2
      kstyle/breezestyle.cpp

@ -2816,6 +2816,8 @@ namespace Breeze
if( ( scrollArea = qobject_cast<const QAbstractScrollArea*>( widget ) ) && scrollArea->viewport() )
{
// need to adjust clipRect in order not to render outside of frame
painter->setClipRect( insideMargin( scrollArea->rect(), Metrics::Frame_FrameWidth ) );
painter->setBrush( option->palette.color( scrollArea->viewport()->backgroundRole() ) );
painter->setPen( Qt::NoPen );
painter->drawRect( option->rect );

Loading…
Cancel
Save