diff -r 11d3954df52a -r 627c4a0fd0e7 src/hbcore/ovgeffects/hbvgoutlineeffect.cpp --- a/src/hbcore/ovgeffects/hbvgoutlineeffect.cpp Thu May 27 13:10:59 2010 +0300 +++ b/src/hbcore/ovgeffects/hbvgoutlineeffect.cpp Fri Jun 11 13:58:22 2010 +0300 @@ -63,8 +63,9 @@ void HbVgOutlineEffect::setOutline(const QPointF &outline) { Q_D(HbVgOutlineEffect); - if (d->outline == outline) + if (d->outline == outline) { return; + } d->outline = outline; updateEffectBoundingRect(); emit outlineChanged(outline); @@ -79,8 +80,9 @@ void HbVgOutlineEffect::setColor(const QColor &color) { Q_D(HbVgOutlineEffect); - if (d->color == color) + if (d->color == color) { return; + } d->color = color; updateEffect(); emit colorChanged(color); @@ -95,8 +97,9 @@ void HbVgOutlineEffect::setSteepness(qreal steepness) { Q_D(HbVgOutlineEffect); - if (d->steepness == steepness) + if (d->steepness == steepness) { return; + } d->steepness = steepness; updateEffect(); emit steepnessChanged(steepness); @@ -111,8 +114,9 @@ void HbVgOutlineEffect::setOffset(const QPointF &offset) { Q_D(HbVgOutlineEffect); - if (d->offset == offset) + if (d->offset == offset) { return; + } d->offset = offset; updateEffectBoundingRect(); emit offsetChanged(offset); @@ -141,8 +145,9 @@ { #ifdef HB_EFFECTS_OPENVG QPixmap cachedPm = cached(vgImageSize); - if (!cachedPm.isNull()) + if (!cachedPm.isNull()) { return cachedPm; + } Q_D(HbVgOutlineEffect); VGImage srcImage = vgImage.value(); @@ -150,14 +155,14 @@ if (d->paramsChanged) { VGubyte stpc = (VGubyte) clamp(d->steepness, 0.0f, 32.0f); - VGubyte unnormalisedOpacity = (VGubyte) (clamp(d->opacity, 0.0f, 1.0f) * 255.0f); + VGubyte unnormalisedOpacity = (VGubyte)(clamp(d->opacity, 0.0f, 1.0f) * 255.0f); for (int i = 0; i < 256; ++i) { - VGubyte alpha = (i*stpc > unnormalisedOpacity) ? unnormalisedOpacity : i*stpc; + VGubyte alpha = (i * stpc > unnormalisedOpacity) ? unnormalisedOpacity : i * stpc; d->lut[i] = 0x00000000 - | (d->color.red() << 24) - | (d->color.green() << 16) - | (d->color.blue() << 8) - | alpha; + | (d->color.red() << 24) + | (d->color.green() << 16) + | (d->color.blue() << 8) + | alpha; } }