42 #ifndef QPIXMAPCACHE_H 43 #define QPIXMAPCACHE_H 45 #include <QtGui/qpixmap.h> 47 #ifdef Q_TEST_QPIXMAPCACHE 48 #include <QtCore/qpair.h> 70 Key &operator =(
const Key &other);
75 friend class QPixmapCache;
88 static void remove(
const Key &
key);
91 #ifdef Q_TEST_QPIXMAPCACHE 92 static void flushDetachedPixmaps();
93 static int totalUsed();
102 #endif // QPIXMAPCACHE_H static int cacheLimit()
Returns the cache limit (in kilobytes).
#define QT_END_NAMESPACE
This macro expands to.
static void clear(QVariant::Private *d)
bool operator!=(QBool b1, bool b2)
The QString class provides a Unicode character string.
static QPixmap * find(const QString &key)
#define QT_BEGIN_NAMESPACE
This macro expands to.
The QPixmapCache::Key class can be used for efficient access to the QPixmapCache. ...
static bool replace(const Key &key, const QPixmap &pixmap)
Replaces the pixmap associated with the given key with the pixmap specified.
static bool insert(const QString &key, const QPixmap &pixmap)
Inserts a copy of the pixmap pixmap associated with the key into the cache.
static void setCacheLimit(int)
Sets the cache limit to n kilobytes.
The QPixmap class is an off-screen image representation that can be used as a paint device...
bool operator==(QBool b1, bool b2)
The QPixmapCache class provides an application-wide cache for pixmaps.
The QList class is a template class that provides lists.