fix -Winconsistent-missing-override

This commit is contained in:
wmayer
2019-06-23 10:37:28 +02:00
parent 3c2dad7f6b
commit eaf591c594

View File

@@ -40,7 +40,7 @@ public:
~QGIDimLines() {}
enum {Type = QGraphicsItem::UserType + 175};
int type() const { return Type;}
int type() const override { return Type;}
virtual QRectF boundingRect() const override;
virtual QPainterPath shape() const override;
@@ -50,7 +50,7 @@ public:
//double getLineWidth() { return m_lineWidth; }
//void setLineWidth(double w);
//QPainterPath shape() const;
virtual void paint(QPainter * painter, const QStyleOptionGraphicsItem * option, QWidget * widget = 0 );
virtual void paint(QPainter * painter, const QStyleOptionGraphicsItem * option, QWidget * widget = 0) override;
protected:
//QVariant itemChange(GraphicsItemChange change, const QVariant &value);