KDEUI
kpixmapcache.h
Go to the documentation of this file.
virtual void insert(const QString &key, const QPixmap &pix)
Inserts the pixmap pix into the cache, associated with the key key.
Definition kpixmapcache.cpp:1366
void setCacheLimit(int kbytes)
Sets the maximum size of the cache (in kilobytes).
Definition kpixmapcache.cpp:1127
virtual bool find(const QString &key, QPixmap &pix)
Tries to load pixmap with the specified key from cache.
Definition kpixmapcache.cpp:1272
QPixmap loadFromSvg(const QString &filename, const QSize &size=QSize())
Same as loadFromFile(), but using an SVG file instead.
Definition kpixmapcache.cpp:1473
bool useQPixmapCache() const
Whether QPixmapCache should be used to cache pixmaps in memory in addition to caching them on the dis...
Definition kpixmapcache.cpp:1117
void setTimestamp(unsigned int time)
Sets the timestamp of app-specific cache.
Definition kpixmapcache.cpp:1072
RemoveStrategy
Describes which entries will be removed first during cache cleanup.
Definition kpixmapcache.h:216
@ RemoveLeastRecentlyUsed
least recently used entries are removed first.
Definition kpixmapcache.h:221
void setUseQPixmapCache(bool use)
Sets whether QPixmapCache (memory caching) should be used in addition to disk cache.
Definition kpixmapcache.cpp:1112
QPixmap loadFromFile(const QString &filename)
Loads a pixmap from given file, using the cache.
Definition kpixmapcache.cpp:1447
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.14.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.14.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.