src/gui/effects/qgraphicseffect.cpp
branchGCC_SURGE
changeset 31 5daf16870df6
parent 30 5dc02b23752f
child 33 3e2da88830cd
equal deleted inserted replaced
27:93b982ccede2 31:5daf16870df6
   324         qWarning("QGraphicsEffectSource::pixmap: Not yet implemented, lacking device context");
   324         qWarning("QGraphicsEffectSource::pixmap: Not yet implemented, lacking device context");
   325         return QPixmap();
   325         return QPixmap();
   326     }
   326     }
   327 
   327 
   328     QPixmap pm;
   328     QPixmap pm;
   329     if (d->m_cachedSystem == system && d->m_cachedMode == mode)
   329     if (item && d->m_cachedSystem == system && d->m_cachedMode == mode)
   330         QPixmapCache::find(d->m_cacheKey, &pm);
   330         QPixmapCache::find(d->m_cacheKey, &pm);
   331 
   331 
   332     if (pm.isNull()) {
   332     if (pm.isNull()) {
   333         pm = d->pixmap(system, &d->m_cachedOffset, mode);
   333         pm = d->pixmap(system, &d->m_cachedOffset, mode);
   334         d->m_cachedSystem = system;
   334         d->m_cachedSystem = system;