diff options
author | Bjørn Erik Nilsen <bjorn.nilsen@nokia.com> | 2009-08-20 12:11:40 (GMT) |
---|---|---|
committer | Bjørn Erik Nilsen <bjorn.nilsen@nokia.com> | 2009-08-20 12:11:40 (GMT) |
commit | 5c7c4b9a0c95f5e97d73547e830a4e4bf87d2fca (patch) | |
tree | 302bba87e068a0d6fc8419a5622dd3c62551183d /examples | |
parent | f6fdb0f10a3525205fc7143e5db61087058daf73 (diff) | |
download | Qt-5c7c4b9a0c95f5e97d73547e830a4e4bf87d2fca.zip Qt-5c7c4b9a0c95f5e97d73547e830a4e4bf87d2fca.tar.gz Qt-5c7c4b9a0c95f5e97d73547e830a4e4bf87d2fca.tar.bz2 |
Rename QGraphicsShadowEffect to QGraphicsDropShadowEffect.
Discussed with Andreas.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/effects/lighting/shadoweffect.cpp | 6 | ||||
-rw-r--r-- | examples/effects/lighting/shadoweffect.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/examples/effects/lighting/shadoweffect.cpp b/examples/effects/lighting/shadoweffect.cpp index f447531..9545815 100644 --- a/examples/effects/lighting/shadoweffect.cpp +++ b/examples/effects/lighting/shadoweffect.cpp @@ -44,7 +44,7 @@ #include <math.h> ShadowEffect::ShadowEffect(QGraphicsItem *item, QGraphicsItem *source) - : QGraphicsShadowEffect() + : QGraphicsDropShadowEffect() , item(item), m_lightSource(source) { setBlurRadius(8); @@ -64,11 +64,11 @@ void ShadowEffect::adjustForItem() QRectF ShadowEffect::boundingRectFor(const QRectF &rect) const { const_cast<ShadowEffect *>(this)->adjustForItem(); - return QGraphicsShadowEffect::boundingRectFor(rect); + return QGraphicsDropShadowEffect::boundingRectFor(rect); } void ShadowEffect::draw(QPainter *painter, QGraphicsEffectSource *source) { adjustForItem(); - QGraphicsShadowEffect::draw(painter, source); + QGraphicsDropShadowEffect::draw(painter, source); } diff --git a/examples/effects/lighting/shadoweffect.h b/examples/effects/lighting/shadoweffect.h index 68318b0..b20f647 100644 --- a/examples/effects/lighting/shadoweffect.h +++ b/examples/effects/lighting/shadoweffect.h @@ -45,7 +45,7 @@ #include <QGraphicsEffect> #include <QGraphicsItem> -class ShadowEffect: public QGraphicsShadowEffect +class ShadowEffect: public QGraphicsDropShadowEffect { public: ShadowEffect(QGraphicsItem *item, QGraphicsItem *source); |