mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2026-07-24 08:40:58 -04:00
PCX: added options support
- Added support for ```Size``` and ```Format``` options and slightly improved format detection from canRead(). - Added PCXHEADER::isValid() method to consolidate header consistency checks in one place.
This commit is contained in:
@@ -9,7 +9,9 @@
|
||||
#define KIMG_PCX_P_H
|
||||
|
||||
#include <QImageIOPlugin>
|
||||
#include <QScopedPointer>
|
||||
|
||||
class PCXHandlerPrivate;
|
||||
class PCXHandler : public QImageIOHandler
|
||||
{
|
||||
public:
|
||||
@@ -19,7 +21,13 @@ public:
|
||||
bool read(QImage *image) override;
|
||||
bool write(const QImage &image) override;
|
||||
|
||||
bool supportsOption(QImageIOHandler::ImageOption option) const override;
|
||||
QVariant option(QImageIOHandler::ImageOption option) const override;
|
||||
|
||||
static bool canRead(QIODevice *device);
|
||||
|
||||
private:
|
||||
const QScopedPointer<PCXHandlerPrivate> d;
|
||||
};
|
||||
|
||||
class PCXPlugin : public QImageIOPlugin
|
||||
|
||||
Reference in New Issue
Block a user