KDEUI
kimagecache.cpp
Go to the documentation of this file.
bool findImage(const QString &key, QImage *destination) const
Copies the cached image identified by key to destination.
Definition: kimagecache.cpp:122
bool loadFromData(const uchar *data, int len, const char *format)
bool findPixmap(const QString &key, QPixmap *destination) const
Copies the cached pixmap identified by key to destination.
Definition: kimagecache.cpp:136
int width() const
bool save(const QString &fileName, const char *format, int quality) const
bool isNull() const
bool loadFromData(const uchar *data, uint len, const char *format, QFlags< Qt::ImageConversionFlag > flags)
QByteArray & buffer()
KImageCache(const QString &cacheName, unsigned defaultCacheSize, unsigned expectedItemSize=0)
Constructs an image cache, named by cacheName, with a default size of defaultCacheSize.
Definition: kimagecache.cpp:82
int depth() const
virtual bool open(QFlags< QIODevice::OpenModeFlag > flags)
QCoreApplication * instance()
bool isNull() const
int height() const
void setPixmapCacheLimit(int size)
Sets the highest memory size the pixmap cache should use.
Definition: kimagecache.cpp:195
void setPixmapCaching(bool enable)
Enables or disables local pixmap caching.
Definition: kimagecache.cpp:180
bool insertPixmap(const QString &key, const QPixmap &pixmap)
Inserts the pixmap given by pixmap to the cache, accessible with key.
Definition: kimagecache.cpp:111
bool insertImage(const QString &key, const QImage &image)
Inserts the image into the shared cache, accessible with key.
Definition: kimagecache.cpp:97
QImage toImage() const
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QObject * parent() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.