summaryrefslogtreecommitdiff
path: root/src/svg/qsvgstructure_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/svg/qsvgstructure_p.h')
-rw-r--r--src/svg/qsvgstructure_p.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/svg/qsvgstructure_p.h b/src/svg/qsvgstructure_p.h
index d09ca79..b055364 100644
--- a/src/svg/qsvgstructure_p.h
+++ b/src/svg/qsvgstructure_p.h
@@ -71,7 +71,7 @@ public:
~QSvgStructureNode();
QSvgNode *scopeNode(const QString &id) const;
void addChild(QSvgNode *child, const QString &id);
- virtual QRectF bounds(QPainter *p, QSvgExtraStates &states) const;
+ QRectF bounds(QPainter *p, QSvgExtraStates &states) const override;
QSvgNode *previousSiblingNode(QSvgNode *n) const;
QList<QSvgNode*> renderers() const { return m_renderers; }
protected:
@@ -84,24 +84,24 @@ class Q_SVG_PRIVATE_EXPORT QSvgG : public QSvgStructureNode
{
public:
QSvgG(QSvgNode *parent);
- virtual void draw(QPainter *p, QSvgExtraStates &states);
- Type type() const;
+ void draw(QPainter *p, QSvgExtraStates &states) override;
+ Type type() const override;
};
class Q_SVG_PRIVATE_EXPORT QSvgDefs : public QSvgStructureNode
{
public:
QSvgDefs(QSvgNode *parent);
- virtual void draw(QPainter *p, QSvgExtraStates &states);
- Type type() const;
+ void draw(QPainter *p, QSvgExtraStates &states) override;
+ Type type() const override;
};
class Q_SVG_PRIVATE_EXPORT QSvgSwitch : public QSvgStructureNode
{
public:
QSvgSwitch(QSvgNode *parent);
- virtual void draw(QPainter *p, QSvgExtraStates &states);
- Type type() const;
+ void draw(QPainter *p, QSvgExtraStates &states) override;
+ Type type() const override;
private:
void init();
private: