KDEUI
Go to the documentation of this file.
26#include <QtCore/QList>
28#include <QtCore/QSize>
101 virtual bool find(
const QString& key, QPixmap& pix);
108 virtual void insert(
const QString& key,
const QPixmap& pix);
128 QPixmap loadFromFile(
const QString& filename);
144 QPixmap loadFromSvg(
const QString& filename,
const QSize& size = QSize());
151 unsigned int timestamp()
const;
158 void setTimestamp(
unsigned int time);
174 void setUseQPixmapCache(
bool use);
186 bool useQPixmapCache()
const;
197 int cacheLimit()
const;
210 void setCacheLimit(
int kbytes);
221 RemoveLeastRecentlyUsed
227 RemoveStrategy removeEntryStrategy()
const;
232 void setRemoveEntryStrategy(RemoveStrategy strategy);
240 bool isEnabled()
const;
247 bool isValid()
const;
255 static void deleteCache(
const QString& name);
279 void removeEntries(
int newsize = 0);
293 void ensureInited()
const;
308 virtual bool loadCustomData(QDataStream& stream);
320 virtual bool writeCustomData(QDataStream& stream);
335 virtual bool loadCustomIndexHeader(QDataStream& stream);
347 virtual void writeCustomIndexHeader(QDataStream& stream);
361 void setValid(
bool valid);
375 bool recreateCacheFiles();
380 friend class Private;
General-purpose pixmap cache for KDE.
RemoveStrategy
Describes which entries will be removed first during cache cleanup.
@ RemoveSeldomUsed
least used entries are removed first.
@ RemoveOldest
oldest entries are removed first.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by
doxygen 1.9.6 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.