fixed toolbutton sunken frame size

wilder-pre-rebase
Hugo Pereira Da Costa 12 years ago
parent c2b4e9170f
commit 2c7829f269
  1. 8
      kstyle/breezehelper.cpp

@ -518,12 +518,12 @@ namespace Breeze
const QColor& color, bool sunken ) const
{
// setup painter
painter->setRenderHint( QPainter::Antialiasing, true );
// do nothing for invalid color
if( !color.isValid() ) return;
// setup painter
painter->setRenderHints( QPainter::Antialiasing );
const QRectF baseRect( rect );
if( sunken )
@ -535,7 +535,7 @@ namespace Breeze
painter->setBrush( color );
const QRectF contentRect( baseRect.adjusted( 1, 1, -1, -1 ) );
painter->drawRoundedRect( baseRect, radius, radius );
painter->drawRoundedRect( contentRect, radius, radius );
} else {

Loading…
Cancel
Save