diff options
author | axis <qt-info@nokia.com> | 2009-11-06 14:44:39 (GMT) |
---|---|---|
committer | axis <qt-info@nokia.com> | 2009-11-06 14:44:39 (GMT) |
commit | daf5f511ee813fc4fffba64bed558d0413270388 (patch) | |
tree | 37fefb6189943606d184d2159577f7f2ce67b5db /src/gui/effects | |
parent | 89b6de9091adbf0645ffe2aba59cb17cb233c170 (diff) | |
parent | ded84966823eac0ae0275a2a7676d647d4d856ff (diff) | |
download | Qt-daf5f511ee813fc4fffba64bed558d0413270388.zip Qt-daf5f511ee813fc4fffba64bed558d0413270388.tar.gz Qt-daf5f511ee813fc4fffba64bed558d0413270388.tar.bz2 |
Merge branch '4.6-s60' into 4.6
Diffstat (limited to 'src/gui/effects')
-rw-r--r-- | src/gui/effects/qgraphicseffect.cpp | 5 | ||||
-rw-r--r-- | src/gui/effects/qgraphicseffect_p.h | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/gui/effects/qgraphicseffect.cpp b/src/gui/effects/qgraphicseffect.cpp index 7f83063..568ff73 100644 --- a/src/gui/effects/qgraphicseffect.cpp +++ b/src/gui/effects/qgraphicseffect.cpp @@ -320,6 +320,11 @@ QPixmap QGraphicsEffectSource::pixmap(Qt::CoordinateSystem system, QPoint *offse return pm; } +QGraphicsEffectSourcePrivate::~QGraphicsEffectSourcePrivate() +{ + invalidateCache(); +} + void QGraphicsEffectSourcePrivate::invalidateCache(bool effectRectChanged) const { if (effectRectChanged && m_cachedMode != QGraphicsEffectSource::ExpandToEffectRectPadMode) diff --git a/src/gui/effects/qgraphicseffect_p.h b/src/gui/effects/qgraphicseffect_p.h index 9a46a24..d94d08d 100644 --- a/src/gui/effects/qgraphicseffect_p.h +++ b/src/gui/effects/qgraphicseffect_p.h @@ -73,7 +73,7 @@ public: , m_cachedMode(QGraphicsEffectSource::ExpandToTransparentBorderPadMode) {} - virtual ~QGraphicsEffectSourcePrivate() { invalidateCache(); } + virtual ~QGraphicsEffectSourcePrivate(); virtual void detach() = 0; virtual QRectF boundingRect(Qt::CoordinateSystem system) const = 0; virtual QRect deviceRect() const = 0; |