diff options
author | Alexis Menard <alexis.menard@nokia.com> | 2009-09-29 07:50:07 (GMT) |
---|---|---|
committer | Alexis Menard <alexis.menard@nokia.com> | 2009-09-29 07:55:32 (GMT) |
commit | c999065d5090a64192f96bed78c5224490409d6a (patch) | |
tree | b3c96a1a0902fd948397eae82359637dc50cf307 /src/gui/image/qpixmap.h | |
parent | dad31edd2d5be5a2902f6b011910f418882c9367 (diff) | |
download | Qt-c999065d5090a64192f96bed78c5224490409d6a.zip Qt-c999065d5090a64192f96bed78c5224490409d6a.tar.gz Qt-c999065d5090a64192f96bed78c5224490409d6a.tar.bz2 |
Fix a bug in QPixmapCache when the cache is trimmed by QCache.
There was a bug in QPixmapCache when QCache trims the content, some keys
were not invalidated. The ifdef for WinCE (that i removed) was a wrong
fix, it let the auto-test pass but it doesn't fix the bug. The approach
here is to add a QPixmapCacheEntry that release the key it owns when
QCache deletes it : we are now sure that nothing happen in our back.
Reviewed-by:paul
Reviewed-by:trond
Diffstat (limited to 'src/gui/image/qpixmap.h')
-rw-r--r-- | src/gui/image/qpixmap.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/image/qpixmap.h b/src/gui/image/qpixmap.h index a891637..d11bd03 100644 --- a/src/gui/image/qpixmap.h +++ b/src/gui/image/qpixmap.h @@ -270,7 +270,7 @@ private: friend class QWidgetPrivate; friend class QRasterPaintEngine; friend class QRasterBuffer; - friend class QDetachedPixmap; + friend class QPixmapCacheEntry; #if !defined(QT_NO_DATASTREAM) friend Q_GUI_EXPORT QDataStream &operator>>(QDataStream &, QPixmap &); #endif |