diff options
author | Bjørn Erik Nilsen <bjorn.nilsen@nokia.com> | 2009-08-21 09:33:44 (GMT) |
---|---|---|
committer | Bjørn Erik Nilsen <bjorn.nilsen@nokia.com> | 2009-08-21 11:51:32 (GMT) |
commit | 00d7d50cde5d1e491039149d58502e17dba9b3b7 (patch) | |
tree | ba59ef8f83677c0c7c74b7db2f3f7a55c2887c16 /src/gui/effects/qgraphicseffect_p.h | |
parent | 487f636523dfded4c07a39e4d96ab3e83c64f95e (diff) | |
download | Qt-00d7d50cde5d1e491039149d58502e17dba9b3b7.zip Qt-00d7d50cde5d1e491039149d58502e17dba9b3b7.tar.gz Qt-00d7d50cde5d1e491039149d58502e17dba9b3b7.tar.bz2 |
Use pixmap filter for the drop shadow effect.
Diffstat (limited to 'src/gui/effects/qgraphicseffect_p.h')
-rw-r--r-- | src/gui/effects/qgraphicseffect_p.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/gui/effects/qgraphicseffect_p.h b/src/gui/effects/qgraphicseffect_p.h index 25397c3..35f2d40 100644 --- a/src/gui/effects/qgraphicseffect_p.h +++ b/src/gui/effects/qgraphicseffect_p.h @@ -144,22 +144,20 @@ class QGraphicsBlurEffectPrivate : public QGraphicsEffectPrivate { Q_DECLARE_PUBLIC(QGraphicsBlurEffect) public: - QGraphicsBlurEffectPrivate() : filter(new QPixmapBlurFilter), blurRadius(4) {} + QGraphicsBlurEffectPrivate() : filter(new QPixmapBlurFilter) {} ~QGraphicsBlurEffectPrivate() { delete filter; } QPixmapBlurFilter *filter; - int blurRadius; }; class QGraphicsDropShadowEffectPrivate : public QGraphicsEffectPrivate { Q_DECLARE_PUBLIC(QGraphicsDropShadowEffect) public: - QGraphicsDropShadowEffectPrivate() : offset(4, 4), radius(8), alpha(0.7) {} + QGraphicsDropShadowEffectPrivate() : filter(new QPixmapDropShadowFilter) {} + ~QGraphicsDropShadowEffectPrivate() { delete filter; } - QPointF offset; - int radius; - qreal alpha; + QPixmapDropShadowFilter *filter; }; QT_END_NAMESPACE |