src/hbcore/ovgeffects/hbvgreflectioneffect.cpp
changeset 7 923ff622b8b9
parent 5 627c4a0fd0e7
child 21 4633027730f5
equal deleted inserted replaced
6:c3690ec91ef8 7:923ff622b8b9
   105         return;
   105         return;
   106     }
   106     }
   107     d->fade = fade;
   107     d->fade = fade;
   108     updateEffect();
   108     updateEffect();
   109     emit fadeChanged(fade);
   109     emit fadeChanged(fade);
   110 }
       
   111 
       
   112 QColor HbVgReflectionEffect::color() const
       
   113 {
       
   114     Q_D(const HbVgReflectionEffect);
       
   115     return d->color;
       
   116 }
       
   117 
       
   118 void HbVgReflectionEffect::setColor(const QColor &color)
       
   119 {
       
   120     Q_D(HbVgReflectionEffect);
       
   121     if (color == d->color) {
       
   122         return;
       
   123     }
       
   124     d->color = color;
       
   125     updateEffect();
       
   126     emit colorChanged(color);
       
   127 }
   110 }
   128 
   111 
   129 QRectF HbVgReflectionEffect::boundingRectFor(const QRectF &rect) const
   112 QRectF HbVgReflectionEffect::boundingRectFor(const QRectF &rect) const
   130 {
   113 {
   131     // Double the height of the rectangle but take also the offset into account.
   114     // Double the height of the rectangle but take also the offset into account.