diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2010-05-11 06:50:24 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2010-05-11 22:42:20 (GMT) |
commit | 355bacaa767f48014478d91e3d79f19f966c9756 (patch) | |
tree | fc8d4581a936339b6404f5b0f35030e418e75447 /src/gui/image/qpixmapcache.h | |
parent | 797d44e7415e8f9d582dd2838957cf309cea9449 (diff) | |
download | Qt-355bacaa767f48014478d91e3d79f19f966c9756.zip Qt-355bacaa767f48014478d91e3d79f19f966c9756.tar.gz Qt-355bacaa767f48014478d91e3d79f19f966c9756.tar.bz2 |
Ensure QPixmapCache does not flush pixmaps that are still in use.
Task-number: QTBUG-10576
Reviewed-by: Alexis Menard
Diffstat (limited to 'src/gui/image/qpixmapcache.h')
-rw-r--r-- | src/gui/image/qpixmapcache.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gui/image/qpixmapcache.h b/src/gui/image/qpixmapcache.h index 50a9369..e9c8c15 100644 --- a/src/gui/image/qpixmapcache.h +++ b/src/gui/image/qpixmapcache.h @@ -44,6 +44,10 @@ #include <QtGui/qpixmap.h> +#ifdef Q_TEST_QPIXMAPCACHE +#include <QtCore/qpair.h> +#endif + QT_BEGIN_HEADER QT_BEGIN_NAMESPACE @@ -83,6 +87,12 @@ public: static void remove(const QString &key); static void remove(const Key &key); static void clear(); + +#ifdef Q_TEST_QPIXMAPCACHE + static void flushDetachedPixmaps(); + static int totalUsed(); + static QList< QPair<QString,QPixmap> > allPixmaps(); +#endif }; QT_END_NAMESPACE |