Qt 4.8
Classes | Macros | Functions | Variables
qpixmapcache.cpp File Reference
#include "qpixmapcache.h"
#include "qobject.h"
#include "qdebug.h"
#include "qpixmapcache_p.h"
#include "qpixmapcache.moc"

Go to the source code of this file.

Classes

class  QPMCache
 

Macros

#define Q_TEST_QPIXMAPCACHE
 

Functions

int Q_AUTOTEST_EXPORT q_QPixmapCache_keyHashSize ()
 
uint qHash (const QPixmapCache::Key &k)
 

Variables

static int cache_limit = 2048
 

Macro Definition Documentation

◆ Q_TEST_QPIXMAPCACHE

#define Q_TEST_QPIXMAPCACHE

Definition at line 42 of file qpixmapcache.cpp.

Function Documentation

◆ q_QPixmapCache_keyHashSize()

int Q_AUTOTEST_EXPORT q_QPixmapCache_keyHashSize ( )

Definition at line 467 of file qpixmapcache.cpp.

468 {
469  return pm_cache()->size();
470 }

◆ qHash()

uint qHash ( const QPixmapCache::Key k)

Definition at line 225 of file qpixmapcache.cpp.

Referenced by qHash().

226 {
227  return qHash(QPMCache::get(k)->key);
228 }
static QPixmapCache::KeyData * get(const QPixmapCache::Key &key)
uint qHash(const QUrl &url)
Definition: qurl.h:285
int key

Variable Documentation

◆ cache_limit

int cache_limit = 2048
static

Definition at line 97 of file qpixmapcache.cpp.

Referenced by QPixmapCache::cacheLimit(), and QPixmapCache::setCacheLimit().