summaryrefslogtreecommitdiffstats
path: root/src/gui/effects
diff options
context:
space:
mode:
authorSamuel Rødal <sroedal@trolltech.com>2010-05-07 10:40:10 (GMT)
committerSamuel Rødal <sroedal@trolltech.com>2010-05-07 10:50:46 (GMT)
commit165fe7bdd7958cec3ec6c17f9ca15d92f30a4672 (patch)
tree35f93fbdc3036992fefdf8d28951432fb66f4306 /src/gui/effects
parent2f9f59d7a33a7cfa5fe2127d726706f10842ca53 (diff)
downloadQt-165fe7bdd7958cec3ec6c17f9ca15d92f30a4672.zip
Qt-165fe7bdd7958cec3ec6c17f9ca15d92f30a4672.tar.gz
Qt-165fe7bdd7958cec3ec6c17f9ca15d92f30a4672.tar.bz2
Fixed scrolling bugs in widget graphics effect backend.
The cache wasn't invalidated for widgets with a graphics effect inside a scrolling QScrollArea, so for now we disable caching for widget source pixmaps. Also, we can't clip the source pixmap to device coordinates since there's no knowledge of which areas of the source pixmap the effect uses to compute the visible pixels. See change fd30cc9fabe6fc023 for the graphics item effect backend fix. Reviewed-by: Bjørn Erik Nilsen
Diffstat (limited to 'src/gui/effects')
-rw-r--r--src/gui/effects/qgraphicseffect.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/effects/qgraphicseffect.cpp b/src/gui/effects/qgraphicseffect.cpp
index ce4ce6a..5e4e49e 100644
--- a/src/gui/effects/qgraphicseffect.cpp
+++ b/src/gui/effects/qgraphicseffect.cpp
@@ -326,7 +326,7 @@ QPixmap QGraphicsEffectSource::pixmap(Qt::CoordinateSystem system, QPoint *offse
}
QPixmap pm;
- if (d->m_cachedSystem == system && d->m_cachedMode == mode)
+ if (item && d->m_cachedSystem == system && d->m_cachedMode == mode)
QPixmapCache::find(d->m_cacheKey, &pm);
if (pm.isNull()) {