diff -r b72c6db6890b -r 5dc02b23752f src/gui/image/qpixmapcache.h --- a/src/gui/image/qpixmapcache.h Wed Jun 23 19:07:03 2010 +0300 +++ b/src/gui/image/qpixmapcache.h Tue Jul 06 15:10:48 2010 +0300 @@ -44,6 +44,10 @@ #include +#ifdef Q_TEST_QPIXMAPCACHE +#include +#endif + QT_BEGIN_HEADER QT_BEGIN_NAMESPACE @@ -83,6 +87,12 @@ 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 > allPixmaps(); +#endif }; QT_END_NAMESPACE