summaryrefslogtreecommitdiffstats
path: root/examples/graphicsview/lighting/shadoweffect.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/graphicsview/lighting/shadoweffect.cpp')
-rw-r--r--examples/graphicsview/lighting/shadoweffect.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/graphicsview/lighting/shadoweffect.cpp b/examples/graphicsview/lighting/shadoweffect.cpp
index e2dd864..f447531 100644
--- a/examples/graphicsview/lighting/shadoweffect.cpp
+++ b/examples/graphicsview/lighting/shadoweffect.cpp
@@ -61,14 +61,14 @@ void ShadowEffect::adjustForItem()
setOpacity(qBound(0.4, 1 - dd / 200.0, 0.7));
}
-QRectF ShadowEffect::boundingRect() const
+QRectF ShadowEffect::boundingRectFor(const QRectF &rect) const
{
const_cast<ShadowEffect *>(this)->adjustForItem();
- return QGraphicsShadowEffect::boundingRect();
+ return QGraphicsShadowEffect::boundingRectFor(rect);
}
-void ShadowEffect::draw(QPainter *painter)
+void ShadowEffect::draw(QPainter *painter, QGraphicsEffectSource *source)
{
adjustForItem();
- QGraphicsShadowEffect::draw(painter);
+ QGraphicsShadowEffect::draw(painter, source);
}