From 4732070efa74040ed7903645a49795bd026a6256 Mon Sep 17 00:00:00 2001 From: Hugo Pereira Da Costa Date: Fri, 16 Sep 2011 18:26:30 +0200 Subject: [PATCH] only define Shadow in scope where it is used. --- clients/oxygen/oxygenbutton.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/clients/oxygen/oxygenbutton.cpp b/clients/oxygen/oxygenbutton.cpp index 6e0921538f..eced12fd33 100644 --- a/clients/oxygen/oxygenbutton.cpp +++ b/clients/oxygen/oxygenbutton.cpp @@ -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;