Fixed corner tileSet color in drawTitleOutline mode.

svn path=/trunk/KDE/kdebase/workspace/; revision=1168083
This commit is contained in:
Hugo Pereira Da Costa 2010-08-26 03:05:10 +00:00
parent 22bbd02a03
commit 0f3a02e265

View file

@ -1348,14 +1348,19 @@ namespace Oxygen
{
TileSet *tileSet( 0 );
QColor background( backgroundPalette( widget(), palette ).window().color() );
ShadowCache::Key key( this->key() );
if( configuration().useOxygenShadows() && glowIsAnimated() && !isForcedActive() )
{
QColor background( backgroundPalette( widget(), palette ).window().color() );
tileSet = shadowCache().tileSet( background, key, glowIntensity() );
} else tileSet = shadowCache().tileSet( background, key );
} else {
QColor background( backgroundColor( widget(), palette ) );
tileSet = shadowCache().tileSet( background, key );
}
if( !isMaximized() ) tileSet->render( frame.adjusted( 4, 4, -4, -4), &painter, TileSet::Ring);
else if( isShade() ) tileSet->render( frame.adjusted( 0, 4, 0, -4), &painter, TileSet::Bottom);