diff options
author | Samuel Rødal <sroedal@trolltech.com> | 2009-10-23 13:32:21 (GMT) |
---|---|---|
committer | Samuel Rødal <sroedal@trolltech.com> | 2009-10-26 09:12:30 (GMT) |
commit | 4e55bb8a761cc3e246c539fc5f7cce103ed4d730 (patch) | |
tree | f9d25a3a8e7d32e8b26914d2ef6223c5db2554c4 /src/gui | |
parent | 9a1ee410d24321e7eedaea6bb4f1b21fcc6fb427 (diff) | |
download | Qt-4e55bb8a761cc3e246c539fc5f7cce103ed4d730.zip Qt-4e55bb8a761cc3e246c539fc5f7cce103ed4d730.tar.gz Qt-4e55bb8a761cc3e246c539fc5f7cce103ed4d730.tar.bz2 |
Made sure we invalidate the cache when the effect rect changes.
When blurring and the blur radius increases we need a bigger effect rect
to do within-pixmap-bounds filtering.
Reviewed-by: Bjørn Erik Nilsen
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/effects/qgraphicseffect.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gui/effects/qgraphicseffect.cpp b/src/gui/effects/qgraphicseffect.cpp index 96d35b0..383627e 100644 --- a/src/gui/effects/qgraphicseffect.cpp +++ b/src/gui/effects/qgraphicseffect.cpp @@ -353,8 +353,10 @@ void QGraphicsEffect::setEnabled(bool enable) return; d->isEnabled = enable; - if (d->source) + if (d->source) { d->source->d_func()->effectBoundingRectChanged(); + d->source->d_func()->invalidateCache(); + } emit enabledChanged(enable); } @@ -408,8 +410,10 @@ QGraphicsEffectSource *QGraphicsEffect::source() const void QGraphicsEffect::updateBoundingRect() { Q_D(QGraphicsEffect); - if (d->source) + if (d->source) { d->source->d_func()->effectBoundingRectChanged(); + d->source->d_func()->invalidateCache(); + } } /*! |