summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@nokia.com>2009-07-21 13:27:50 (GMT)
committerVolker Hilsheimer <volker.hilsheimer@nokia.com>2009-07-21 13:29:20 (GMT)
commit77d9528d802b4e36423814ae2c52abc3e36de40c (patch)
tree4b11dde978a68eae0f291ce5f4f665987c0fa45c /src
parent08ff267fe37dcccb7f63a8158b260e2e3b1e0965 (diff)
downloadQt-77d9528d802b4e36423814ae2c52abc3e36de40c.zip
Qt-77d9528d802b4e36423814ae2c52abc3e36de40c.tar.gz
Qt-77d9528d802b4e36423814ae2c52abc3e36de40c.tar.bz2
Doc: More docu for the QPixmapCache::Key
Diffstat (limited to 'src')
-rw-r--r--src/gui/image/qpixmapcache.cpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/gui/image/qpixmapcache.cpp b/src/gui/image/qpixmapcache.cpp
index 82069d0..ecdcd8c 100644
--- a/src/gui/image/qpixmapcache.cpp
+++ b/src/gui/image/qpixmapcache.cpp
@@ -64,7 +64,8 @@ QT_BEGIN_NAMESPACE
access the global pixmap cache. It creates an internal QCache
object for caching the pixmaps.
- The cache associates a pixmap with a string as a key or with a QPixmapCache::Key.
+ The cache associates a pixmap with a user-provided string as a key,
+ or with a QPixmapCache::Key that the cache generates.
Using QPixmapCache::Key for keys is faster than using strings. The string API is
very convenient for complex keys but the QPixmapCache::Key API will be very
efficient and convenient for a one-to-one object-to-pixmap mapping \mdash in
@@ -92,6 +93,17 @@ static int cache_limit = 10240; // 10 MB cache limit for desktop
#endif
/*!
+ \class QPixmapCache::Key
+ \brief The QPixmapCache::Key class can be used for efficient access
+ to the QPixmapCache.
+ \since 4.6
+
+ 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.
+*/
+
+/*!
Constructs an empty Key object.
*/
QPixmapCache::Key::Key() : d(0)