summaryrefslogtreecommitdiffstats
path: root/src/gui/image/qpixmapcache.h
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2010-05-11 16:50:24 +1000
committerWarwick Allison <warwick.allison@nokia.com>2010-05-12 08:42:20 +1000
commit355bacaa767f48014478d91e3d79f19f966c9756 (patch)
treefc8d4581a936339b6404f5b0f35030e418e75447 /src/gui/image/qpixmapcache.h
parent797d44e7415e8f9d582dd2838957cf309cea9449 (diff)
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.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gui/image/qpixmapcache.h b/src/gui/image/qpixmapcache.h
index 50a9369f81..e9c8c15ff0 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