Qt 4.8
|
The QPixmapCache::Key class can be used for efficient access to the QPixmapCache. More...
#include <qpixmapcache.h>
Public Functions | |
Key () | |
Constructs an empty Key object. More... | |
Key (const Key &other) | |
Constructs a copy of other. More... | |
bool | operator!= (const Key &key) const |
Key & | operator= (const Key &other) |
bool | operator== (const Key &key) const |
Returns true if this key is the same as the given key; otherwise returns false. More... | |
~Key () | |
Destroys the key. More... | |
Properties | |
KeyData * | d |
Friends | |
class | QPixmapCache |
class | QPMCache |
The QPixmapCache::Key class can be used for efficient access to the QPixmapCache.
Use QPixmapCache::insert() to receive an instance of Key generated by the pixmap cache. You can store the key in your own objects for a very efficient one-to-one object-to-pixmap mapping.
Definition at line 61 of file qpixmapcache.h.
QPixmapCache::Key::Key | ( | ) |
Constructs an empty Key object.
Definition at line 119 of file qpixmapcache.cpp.
QPixmapCache::Key::Key | ( | const Key & | other | ) |
Constructs a copy of other.
Definition at line 130 of file qpixmapcache.cpp.
QPixmapCache::Key::~Key | ( | ) |
|
inline |
Definition at line 68 of file qpixmapcache.h.
QPixmapCache::Key & QPixmapCache::Key::operator= | ( | const Key & | other | ) |
Definition at line 168 of file qpixmapcache.cpp.
bool QPixmapCache::Key::operator== | ( | const Key & | key | ) | const |
Returns true if this key is the same as the given key; otherwise returns false.
Definition at line 155 of file qpixmapcache.cpp.
|
friend |
Definition at line 75 of file qpixmapcache.h.
Definition at line 74 of file qpixmapcache.h.
|
private |
Definition at line 73 of file qpixmapcache.h.
Referenced by QPMCache::clear(), QPixmapCache::find(), QPMCache::get(), QPMCache::getKeyData(), QPMCache::insert(), Key(), QPMCache::object(), operator=(), operator==(), QPMCache::releaseKey(), QPixmapCache::remove(), QPMCache::remove(), QPixmapCache::replace(), QPMCache::replace(), and ~Key().