QtGui: Add missing override

Change-Id: Ief5b0863d7649d5a8d421c05766513276c264776
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Alexander Volkov 2016-11-24 02:02:42 +03:00 committed by Thiago Macieira
parent 20526cb014
commit 1ff2acf20f
10 changed files with 73 additions and 73 deletions

View File

@ -93,17 +93,17 @@ public:
};
explicit QBmpHandler(InternalFormat fmt = BmpFormat);
bool canRead() const;
bool read(QImage *image);
bool write(const QImage &image);
bool canRead() const override;
bool read(QImage *image) override;
bool write(const QImage &image) override;
QByteArray name() const;
QByteArray name() const override;
static bool canRead(QIODevice *device);
QVariant option(ImageOption option) const;
void setOption(ImageOption option, const QVariant &value);
bool supportsOption(ImageOption option) const;
QVariant option(ImageOption option) const override;
void setOption(ImageOption option, const QVariant &value) override;
bool supportsOption(ImageOption option) const override;
private:
bool readHeader();

View File

@ -64,15 +64,15 @@ public:
QPngHandler();
~QPngHandler();
bool canRead() const;
bool read(QImage *image);
bool write(const QImage &image);
bool canRead() const override;
bool read(QImage *image) override;
bool write(const QImage &image) override;
QByteArray name() const;
QByteArray name() const override;
QVariant option(ImageOption option) const;
void setOption(ImageOption option, const QVariant &value);
bool supportsOption(ImageOption option) const;
QVariant option(ImageOption option) const override;
void setOption(ImageOption option, const QVariant &value) override;
bool supportsOption(ImageOption option) const override;
static bool canRead(QIODevice *device);

View File

@ -62,17 +62,17 @@ class QPpmHandler : public QImageIOHandler
{
public:
QPpmHandler();
bool canRead() const;
bool read(QImage *image);
bool write(const QImage &image);
bool canRead() const override;
bool read(QImage *image) override;
bool write(const QImage &image) override;
QByteArray name() const;
QByteArray name() const override;
static bool canRead(QIODevice *device, QByteArray *subType = 0);
QVariant option(ImageOption option) const;
void setOption(ImageOption option, const QVariant &value);
bool supportsOption(ImageOption option) const;
QVariant option(ImageOption option) const override;
void setOption(ImageOption option, const QVariant &value) override;
bool supportsOption(ImageOption option) const override;
private:
bool readHeader();

View File

@ -61,17 +61,17 @@ class QXbmHandler : public QImageIOHandler
{
public:
QXbmHandler();
bool canRead() const;
bool read(QImage *image);
bool write(const QImage &image);
bool canRead() const override;
bool read(QImage *image) override;
bool write(const QImage &image) override;
QByteArray name() const;
QByteArray name() const override;
static bool canRead(QIODevice *device);
QVariant option(ImageOption option) const;
void setOption(ImageOption option, const QVariant &value);
bool supportsOption(ImageOption option) const;
QVariant option(ImageOption option) const override;
void setOption(ImageOption option, const QVariant &value) override;
bool supportsOption(ImageOption option) const override;
private:
bool readHeader();

View File

@ -61,17 +61,17 @@ class QXpmHandler : public QImageIOHandler
{
public:
QXpmHandler();
bool canRead() const;
bool read(QImage *image);
bool write(const QImage &image);
bool canRead() const override;
bool read(QImage *image) override;
bool write(const QImage &image) override;
static bool canRead(QIODevice *device);
QByteArray name() const;
QByteArray name() const override;
QVariant option(ImageOption option) const;
void setOption(ImageOption option, const QVariant &value);
bool supportsOption(ImageOption option) const;
QVariant option(ImageOption option) const override;
void setOption(ImageOption option, const QVariant &value) override;
bool supportsOption(ImageOption option) const override;
private:
bool readHeader();

View File

@ -61,8 +61,8 @@ public:
QOpenGLPaintDevice(int width, int height);
virtual ~QOpenGLPaintDevice();
int devType() const { return QInternal::OpenGL; }
QPaintEngine *paintEngine() const;
int devType() const override { return QInternal::OpenGL; }
QPaintEngine *paintEngine() const override;
QOpenGLContext *context() const;
QSize size() const;
@ -82,7 +82,7 @@ public:
protected:
QOpenGLPaintDevice(QOpenGLPaintDevicePrivate &dd);
int metric(QPaintDevice::PaintDeviceMetric metric) const;
int metric(QPaintDevice::PaintDeviceMetric metric) const override;
Q_DISABLE_COPY(QOpenGLPaintDevice)
QScopedPointer<QOpenGLPaintDevicePrivate> d_ptr;

View File

@ -61,37 +61,37 @@ class QEmulationPaintEngine : public QPaintEngineEx
public:
QEmulationPaintEngine(QPaintEngineEx *engine);
virtual bool begin(QPaintDevice *pdev);
virtual bool end();
bool begin(QPaintDevice *pdev) override;
bool end() override;
virtual Type type() const;
virtual QPainterState *createState(QPainterState *orig) const;
Type type() const override;
QPainterState *createState(QPainterState *orig) const override;
virtual void fill(const QVectorPath &path, const QBrush &brush);
virtual void stroke(const QVectorPath &path, const QPen &pen);
virtual void clip(const QVectorPath &path, Qt::ClipOperation op);
void fill(const QVectorPath &path, const QBrush &brush) override;
void stroke(const QVectorPath &path, const QPen &pen) override;
void clip(const QVectorPath &path, Qt::ClipOperation op) override;
virtual void drawPixmap(const QRectF &r, const QPixmap &pm, const QRectF &sr);
virtual void drawTextItem(const QPointF &p, const QTextItem &textItem);
virtual void drawStaticTextItem(QStaticTextItem *item);
virtual void drawTiledPixmap(const QRectF &r, const QPixmap &pixmap, const QPointF &s);
virtual void drawImage(const QRectF &r, const QImage &pm, const QRectF &sr, Qt::ImageConversionFlags flags);
void drawPixmap(const QRectF &r, const QPixmap &pm, const QRectF &sr) override;
void drawTextItem(const QPointF &p, const QTextItem &textItem) override;
void drawStaticTextItem(QStaticTextItem *item) override;
void drawTiledPixmap(const QRectF &r, const QPixmap &pixmap, const QPointF &s) override;
void drawImage(const QRectF &r, const QImage &pm, const QRectF &sr, Qt::ImageConversionFlags flags) override;
virtual void clipEnabledChanged();
virtual void penChanged();
virtual void brushChanged();
virtual void brushOriginChanged();
virtual void opacityChanged();
virtual void compositionModeChanged();
virtual void renderHintsChanged();
virtual void transformChanged();
void clipEnabledChanged() override;
void penChanged() override;
void brushChanged() override;
void brushOriginChanged() override;
void opacityChanged() override;
void compositionModeChanged() override;
void renderHintsChanged() override;
void transformChanged() override;
virtual void setState(QPainterState *s);
void setState(QPainterState *s) override;
virtual void beginNativePainting();
virtual void endNativePainting();
void beginNativePainting() override;
void endNativePainting() override;
virtual uint flags() const {return QPaintEngineEx::IsEmulationEngine | QPaintEngineEx::DoNotEmulate;}
uint flags() const override { return QPaintEngineEx::IsEmulationEngine | QPaintEngineEx::DoNotEmulate; }
inline QPainterState *state() { return (QPainterState *)QPaintEngine::state; }
inline const QPainterState *state() const { return (const QPainterState *)QPaintEngine::state; }

View File

@ -286,7 +286,7 @@ public:
void rasterize(QT_FT_Outline *outline, ProcessSpans callback, void *userData, QRasterBuffer *rasterBuffer);
void updateMatrixData(QSpanData *spanData, const QBrush &brush, const QTransform &brushMatrix);
void systemStateChanged();
void systemStateChanged() override;
void drawImage(const QPointF &pt, const QImage &img, SrcOverBlendFunc func,
const QRect &clip, int alpha, const QRect &sr = QRect());

View File

@ -67,7 +67,7 @@ public:
QString creator() const;
void setCreator(const QString &creator);
bool newPage();
bool newPage() override;
void setResolution(int resolution);
int resolution() const;
@ -83,14 +83,14 @@ public:
using QPagedPaintDevice::setPageSize;
#endif
void setPageSize(PageSize size);
void setPageSizeMM(const QSizeF &size);
void setPageSize(PageSize size) override;
void setPageSizeMM(const QSizeF &size) override;
void setMargins(const Margins &m);
void setMargins(const Margins &m) override;
protected:
QPaintEngine *paintEngine() const;
int metric(PaintDeviceMetric id) const;
QPaintEngine *paintEngine() const override;
int metric(PaintDeviceMetric id) const override;
private:
Q_DISABLE_COPY(QPdfWriter)

View File

@ -233,7 +233,7 @@ protected:
static Qt::PenJoinStyle joinForJoinMode(LineJoinMode mode);
static LineJoinMode joinModeForJoin(Qt::PenJoinStyle joinStyle);
virtual void processCurrentSubpath();
void processCurrentSubpath() override;
qfixed m_strokeWidth;
qfixed m_miterLimit;
@ -264,14 +264,14 @@ public:
void setDashOffset(qreal offset) { m_dashOffset = offset; }
qreal dashOffset() const { return m_dashOffset; }
virtual void begin(void *data);
virtual void end();
void begin(void *data) override;
void end() override;
inline void setStrokeWidth(qreal width) { m_stroke_width = width; }
inline void setMiterLimit(qreal limit) { m_miter_limit = limit; }
protected:
virtual void processCurrentSubpath();
void processCurrentSubpath() override;
QStroker *m_stroker;
QVector<qfixed> m_dashPattern;