6#include <QtGui/QImageIOHandler>
18 bool read(QImage *image) override;
19 bool write(
const QImage &image) override;
25 static bool canRead(QIODevice *device);
27 bool supportsOption(
ImageOption option)
const override;
31 int m_currentIconIndex;
33 mutable bool knownCanRead =
false;
QImageIOHandler * create(QIODevice *device, const QByteArray &format=QByteArray()) const override
Creates and returns a QImageIOHandler subclass, with device and format set.
ImageOption
This enum describes the different options supported by QImageIOHandler.
The QtIcoHandler class provides support for the ICO image format.
bool canRead() const override
Verifies if some values (magic bytes) are set as expected in the header of the file.
virtual ~QtIcoHandler()
Destructor for QtIcoHandler.
bool jumpToNextImage() override
\reimp
int imageCount() const override
\reimp
bool jumpToImage(int imageNumber) override
\reimp
QtIcoHandler(QIODevice *device)
Constructs an instance of QtIcoHandler initialized to use device.
static bool canRead(QIODevice *device)
This static function is used by the plugin code, and is provided for convenience only.