summaryrefslogtreecommitdiffstats
path: root/src/gui/effects
diff options
context:
space:
mode:
authoraxis <qt-info@nokia.com>2009-11-06 14:44:39 (GMT)
committeraxis <qt-info@nokia.com>2009-11-06 14:44:39 (GMT)
commitdaf5f511ee813fc4fffba64bed558d0413270388 (patch)
tree37fefb6189943606d184d2159577f7f2ce67b5db /src/gui/effects
parent89b6de9091adbf0645ffe2aba59cb17cb233c170 (diff)
parentded84966823eac0ae0275a2a7676d647d4d856ff (diff)
downloadQt-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.cpp5
-rw-r--r--src/gui/effects/qgraphicseffect_p.h2
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;