mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2025-06-03 17:08:08 -04:00
Use Q_DECL_OVERRIDE where possible
REVIEW: 122542
This commit is contained in:
parent
6b72930cb2
commit
ac2b63046f
@ -14,9 +14,9 @@ class EPSHandler : public QImageIOHandler
|
|||||||
public:
|
public:
|
||||||
EPSHandler();
|
EPSHandler();
|
||||||
|
|
||||||
virtual bool canRead() const;
|
bool canRead() const Q_DECL_OVERRIDE;
|
||||||
virtual bool read(QImage *image);
|
bool read(QImage *image) Q_DECL_OVERRIDE;
|
||||||
virtual bool write(const QImage &image);
|
bool write(const QImage &image) Q_DECL_OVERRIDE;
|
||||||
|
|
||||||
static bool canRead(QIODevice *device);
|
static bool canRead(QIODevice *device);
|
||||||
};
|
};
|
||||||
@ -27,8 +27,8 @@ class EPSPlugin : public QImageIOPlugin
|
|||||||
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QImageIOHandlerFactoryInterface" FILE "eps.json")
|
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QImageIOHandlerFactoryInterface" FILE "eps.json")
|
||||||
|
|
||||||
public:
|
public:
|
||||||
virtual Capabilities capabilities(QIODevice *device, const QByteArray &format) const;
|
Capabilities capabilities(QIODevice *device, const QByteArray &format) const Q_DECL_OVERRIDE;
|
||||||
virtual QImageIOHandler *create(QIODevice *device, const QByteArray &format = QByteArray()) const;
|
QImageIOHandler *create(QIODevice *device, const QByteArray &format = QByteArray()) const Q_DECL_OVERRIDE;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // KIMG_EPS_H
|
#endif // KIMG_EPS_H
|
||||||
|
@ -41,10 +41,10 @@ public:
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual bool read(char c[], int n);
|
bool read(char c[], int n) Q_DECL_OVERRIDE;
|
||||||
virtual Imf::Int64 tellg();
|
Imf::Int64 tellg() Q_DECL_OVERRIDE;
|
||||||
virtual void seekg(Imf::Int64 pos);
|
void seekg(Imf::Int64 pos) Q_DECL_OVERRIDE;
|
||||||
virtual void clear();
|
void clear() Q_DECL_OVERRIDE;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QIODevice *m_dev;
|
QIODevice *m_dev;
|
||||||
|
@ -18,8 +18,8 @@ class EXRHandler : public QImageIOHandler
|
|||||||
public:
|
public:
|
||||||
EXRHandler();
|
EXRHandler();
|
||||||
|
|
||||||
virtual bool canRead() const;
|
bool canRead() const Q_DECL_OVERRIDE;
|
||||||
virtual bool read(QImage *outImage);
|
bool read(QImage *outImage) Q_DECL_OVERRIDE;
|
||||||
|
|
||||||
static bool canRead(QIODevice *device);
|
static bool canRead(QIODevice *device);
|
||||||
};
|
};
|
||||||
@ -30,8 +30,8 @@ class EXRPlugin : public QImageIOPlugin
|
|||||||
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QImageIOHandlerFactoryInterface" FILE "exr.json")
|
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QImageIOHandlerFactoryInterface" FILE "exr.json")
|
||||||
|
|
||||||
public:
|
public:
|
||||||
virtual Capabilities capabilities(QIODevice *device, const QByteArray &format) const;
|
Capabilities capabilities(QIODevice *device, const QByteArray &format) const Q_DECL_OVERRIDE;
|
||||||
virtual QImageIOHandler *create(QIODevice *device, const QByteArray &format = QByteArray()) const;
|
QImageIOHandler *create(QIODevice *device, const QByteArray &format = QByteArray()) const Q_DECL_OVERRIDE;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // KIMG_EXR_H
|
#endif // KIMG_EXR_H
|
||||||
|
@ -17,9 +17,9 @@ class PCXHandler : public QImageIOHandler
|
|||||||
public:
|
public:
|
||||||
PCXHandler();
|
PCXHandler();
|
||||||
|
|
||||||
virtual bool canRead() const;
|
bool canRead() const Q_DECL_OVERRIDE;
|
||||||
virtual bool read(QImage *image);
|
bool read(QImage *image) Q_DECL_OVERRIDE;
|
||||||
virtual bool write(const QImage &image);
|
bool write(const QImage &image) Q_DECL_OVERRIDE;
|
||||||
|
|
||||||
static bool canRead(QIODevice *device);
|
static bool canRead(QIODevice *device);
|
||||||
};
|
};
|
||||||
@ -30,8 +30,8 @@ class PCXPlugin : public QImageIOPlugin
|
|||||||
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QImageIOHandlerFactoryInterface" FILE "pcx.json")
|
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QImageIOHandlerFactoryInterface" FILE "pcx.json")
|
||||||
|
|
||||||
public:
|
public:
|
||||||
virtual Capabilities capabilities(QIODevice *device, const QByteArray &format) const;
|
Capabilities capabilities(QIODevice *device, const QByteArray &format) const Q_DECL_OVERRIDE;
|
||||||
virtual QImageIOHandler *create(QIODevice *device, const QByteArray &format = QByteArray()) const;
|
QImageIOHandler *create(QIODevice *device, const QByteArray &format = QByteArray()) const Q_DECL_OVERRIDE;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // KIMG_PCX_H
|
#endif // KIMG_PCX_H
|
||||||
|
@ -195,8 +195,8 @@ class SoftimagePICPlugin : public QImageIOPlugin
|
|||||||
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QImageIOHandlerFactoryInterface" FILE "pic.json")
|
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QImageIOHandlerFactoryInterface" FILE "pic.json")
|
||||||
|
|
||||||
public:
|
public:
|
||||||
virtual Capabilities capabilities(QIODevice *device, const QByteArray &format) const;
|
Capabilities capabilities(QIODevice *device, const QByteArray &format) const Q_DECL_OVERRIDE;
|
||||||
virtual QImageIOHandler *create(QIODevice *device, const QByteArray &format = QByteArray()) const;
|
QImageIOHandler *create(QIODevice *device, const QByteArray &format = QByteArray()) const Q_DECL_OVERRIDE;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // KIMG_PIC_H
|
#endif // KIMG_PIC_H
|
||||||
|
@ -17,8 +17,8 @@ class PSDHandler : public QImageIOHandler
|
|||||||
public:
|
public:
|
||||||
PSDHandler();
|
PSDHandler();
|
||||||
|
|
||||||
virtual bool canRead() const;
|
bool canRead() const Q_DECL_OVERRIDE;
|
||||||
virtual bool read(QImage *image);
|
bool read(QImage *image) Q_DECL_OVERRIDE;
|
||||||
|
|
||||||
static bool canRead(QIODevice *device);
|
static bool canRead(QIODevice *device);
|
||||||
};
|
};
|
||||||
@ -29,8 +29,8 @@ class PSDPlugin : public QImageIOPlugin
|
|||||||
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QImageIOHandlerFactoryInterface" FILE "psd.json")
|
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QImageIOHandlerFactoryInterface" FILE "psd.json")
|
||||||
|
|
||||||
public:
|
public:
|
||||||
virtual Capabilities capabilities(QIODevice *device, const QByteArray &format) const;
|
Capabilities capabilities(QIODevice *device, const QByteArray &format) const Q_DECL_OVERRIDE;
|
||||||
virtual QImageIOHandler *create(QIODevice *device, const QByteArray &format = QByteArray()) const;
|
QImageIOHandler *create(QIODevice *device, const QByteArray &format = QByteArray()) const Q_DECL_OVERRIDE;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // KIMG_PSD_H
|
#endif // KIMG_PSD_H
|
||||||
|
@ -18,8 +18,8 @@ class RASHandler : public QImageIOHandler
|
|||||||
public:
|
public:
|
||||||
RASHandler();
|
RASHandler();
|
||||||
|
|
||||||
virtual bool canRead() const;
|
bool canRead() const Q_DECL_OVERRIDE;
|
||||||
virtual bool read(QImage *image);
|
bool read(QImage *image) Q_DECL_OVERRIDE;
|
||||||
|
|
||||||
static bool canRead(QIODevice *device);
|
static bool canRead(QIODevice *device);
|
||||||
};
|
};
|
||||||
@ -30,8 +30,8 @@ class RASPlugin : public QImageIOPlugin
|
|||||||
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QImageIOHandlerFactoryInterface" FILE "ras.json")
|
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QImageIOHandlerFactoryInterface" FILE "ras.json")
|
||||||
|
|
||||||
public:
|
public:
|
||||||
virtual Capabilities capabilities(QIODevice *device, const QByteArray &format) const;
|
Capabilities capabilities(QIODevice *device, const QByteArray &format) const Q_DECL_OVERRIDE;
|
||||||
virtual QImageIOHandler *create(QIODevice *device, const QByteArray &format = QByteArray()) const;
|
QImageIOHandler *create(QIODevice *device, const QByteArray &format = QByteArray()) const Q_DECL_OVERRIDE;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // KIMG_RAS_H
|
#endif // KIMG_RAS_H
|
||||||
|
@ -17,9 +17,9 @@ class RGBHandler : public QImageIOHandler
|
|||||||
public:
|
public:
|
||||||
RGBHandler();
|
RGBHandler();
|
||||||
|
|
||||||
virtual bool canRead() const;
|
bool canRead() const Q_DECL_OVERRIDE;
|
||||||
virtual bool read(QImage *image);
|
bool read(QImage *image) Q_DECL_OVERRIDE;
|
||||||
virtual bool write(const QImage &image);
|
bool write(const QImage &image) Q_DECL_OVERRIDE;
|
||||||
|
|
||||||
static bool canRead(QIODevice *device);
|
static bool canRead(QIODevice *device);
|
||||||
};
|
};
|
||||||
@ -30,8 +30,8 @@ class RGBPlugin : public QImageIOPlugin
|
|||||||
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QImageIOHandlerFactoryInterface" FILE "rgb.json")
|
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QImageIOHandlerFactoryInterface" FILE "rgb.json")
|
||||||
|
|
||||||
public:
|
public:
|
||||||
virtual Capabilities capabilities(QIODevice *device, const QByteArray &format) const;
|
Capabilities capabilities(QIODevice *device, const QByteArray &format) const Q_DECL_OVERRIDE;
|
||||||
virtual QImageIOHandler *create(QIODevice *device, const QByteArray &format = QByteArray()) const;
|
QImageIOHandler *create(QIODevice *device, const QByteArray &format = QByteArray()) const Q_DECL_OVERRIDE;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // KIMG_RGB_H
|
#endif // KIMG_RGB_H
|
||||||
|
@ -17,9 +17,9 @@ class TGAHandler : public QImageIOHandler
|
|||||||
public:
|
public:
|
||||||
TGAHandler();
|
TGAHandler();
|
||||||
|
|
||||||
virtual bool canRead() const;
|
bool canRead() const Q_DECL_OVERRIDE;
|
||||||
virtual bool read(QImage *image);
|
bool read(QImage *image) Q_DECL_OVERRIDE;
|
||||||
virtual bool write(const QImage &image);
|
bool write(const QImage &image) Q_DECL_OVERRIDE;
|
||||||
|
|
||||||
static bool canRead(QIODevice *device);
|
static bool canRead(QIODevice *device);
|
||||||
};
|
};
|
||||||
@ -30,8 +30,8 @@ class TGAPlugin : public QImageIOPlugin
|
|||||||
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QImageIOHandlerFactoryInterface" FILE "tga.json")
|
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QImageIOHandlerFactoryInterface" FILE "tga.json")
|
||||||
|
|
||||||
public:
|
public:
|
||||||
virtual Capabilities capabilities(QIODevice *device, const QByteArray &format) const;
|
Capabilities capabilities(QIODevice *device, const QByteArray &format) const Q_DECL_OVERRIDE;
|
||||||
virtual QImageIOHandler *create(QIODevice *device, const QByteArray &format = QByteArray()) const;
|
QImageIOHandler *create(QIODevice *device, const QByteArray &format = QByteArray()) const Q_DECL_OVERRIDE;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // KIMG_TGA_H
|
#endif // KIMG_TGA_H
|
||||||
|
@ -29,9 +29,9 @@ class XCFHandler : public QImageIOHandler
|
|||||||
public:
|
public:
|
||||||
XCFHandler();
|
XCFHandler();
|
||||||
|
|
||||||
virtual bool canRead() const;
|
bool canRead() const Q_DECL_OVERRIDE;
|
||||||
virtual bool read(QImage *image);
|
bool read(QImage *image) Q_DECL_OVERRIDE;
|
||||||
virtual bool write(const QImage &image);
|
bool write(const QImage &image) Q_DECL_OVERRIDE;
|
||||||
|
|
||||||
static bool canRead(QIODevice *device);
|
static bool canRead(QIODevice *device);
|
||||||
};
|
};
|
||||||
@ -42,8 +42,8 @@ class XCFPlugin : public QImageIOPlugin
|
|||||||
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QImageIOHandlerFactoryInterface" FILE "xcf.json")
|
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QImageIOHandlerFactoryInterface" FILE "xcf.json")
|
||||||
|
|
||||||
public:
|
public:
|
||||||
virtual Capabilities capabilities(QIODevice *device, const QByteArray &format) const;
|
Capabilities capabilities(QIODevice *device, const QByteArray &format) const Q_DECL_OVERRIDE;
|
||||||
virtual QImageIOHandler *create(QIODevice *device, const QByteArray &format = QByteArray()) const;
|
QImageIOHandler *create(QIODevice *device, const QByteArray &format = QByteArray()) const Q_DECL_OVERRIDE;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // KIMG_XCF_H
|
#endif // KIMG_XCF_H
|
||||||
|
Loading…
x
Reference in New Issue
Block a user