only define Shadow in scope where it is used.

This commit is contained in:
Hugo Pereira Da Costa 2011-09-16 18:26:30 +02:00
parent a05eecf4f0
commit 4732070efa

View file

@ -250,9 +250,6 @@ namespace Oxygen
_helper.viewNegativeTextBrush().brush(palette).color():
_helper.viewHoverBrush().brush(palette).color();
// shadow color
QColor shadow = _helper.calcShadowColor( base );
// decide decoration color
if( isAnimated() ) color = KColorUtils::mix( color, glow, glowIntensity() );
else if( _status == Oxygen::Hovered ) color = glow;
@ -260,6 +257,9 @@ namespace Oxygen
if( hasDecoration() )
{
// shadow color
QColor shadow = _helper.calcShadowColor( base );
// decide shadow color
if( isAnimated() ) shadow = KColorUtils::mix( shadow, glow, glowIntensity() );
else if( _status == Oxygen::Hovered ) shadow = glow;