Sync r889744 from Oxygen.

svn path=/trunk/KDE/kdebase/workspace/; revision=889748
This commit is contained in:
Lucas Murray 2008-11-27 14:36:16 +00:00
parent 2385ed545b
commit 6c45eb5280

View file

@ -199,6 +199,7 @@ QList< QList<QImage> > OxygenFactory::shadowTextures()
shadow->fill( Qt::transparent );
QRadialGradient rg( size, size, size );
QColor c = color;
c.setAlpha( 0 ); rg.setColorAt( 4/size, c );
c.setAlpha( 255 ); rg.setColorAt( 4.4/size, c );
c = glow;
c.setAlpha( 220 ); rg.setColorAt( 4.5/size, c );
@ -213,6 +214,7 @@ QList< QList<QImage> > OxygenFactory::shadowTextures()
rg = QRadialGradient( size, size, size );
c = color;
c.setAlpha( 0 ); rg.setColorAt( 4/size, c );
c.setAlpha( 255 ); rg.setColorAt( 4.4/size, c );
c = glow2;
c.setAlpha( 0.58*255 ); rg.setColorAt( 4.5/size, c );
@ -325,6 +327,12 @@ QList< QList<QImage> > OxygenFactory::shadowTextures()
p.setPen(QPen(lg, 0.8));
p.drawEllipse(QRectF(size-4, size-4, 8, 8));
// cut out the part of the texture that is under the window
p.setCompositionMode( QPainter::CompositionMode_Xor );
p.setBrush( QColor( 0, 0, 0, 255 ));
p.setPen( Qt::NoPen );
p.drawEllipse(QRectF(size-4, size-4, 8, 8));
p.end();
MAKE_TEX( w, h, 0, h+1 ); // corner