fix -Winconsistent-missing-override

This commit is contained in:
wmayer
2019-05-11 19:46:47 +02:00
parent 9ab8915c9a
commit 3bf6c1bc32
4 changed files with 4 additions and 4 deletions

View File

@@ -64,7 +64,7 @@ public:
DrawView* getBaseView(void) const;
virtual App::DocumentObject* getBaseObject(void) const;
bool keepUpdated(void);
double getScale(void) const;
double getScale(void) const override;
void adjustLastSegment(void);
bool getDefAuto(void) const;

View File

@@ -54,7 +54,7 @@ public:
virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent *event) override;
virtual void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event) override;
virtual void keyPressEvent(QKeyEvent * event);
virtual void keyPressEvent(QKeyEvent * event) override;
virtual void setRadius(float r) override;

View File

@@ -96,7 +96,7 @@ protected:
Base::Vector3d m_attachPoint;
protected:
QColor getNormalColor();
QColor getNormalColor() override;
QGraphicsItem* m_parentItem;
QGEPath* m_line;

View File

@@ -50,7 +50,7 @@ public:
~QGMText() {}
enum {Type = QGraphicsItem::UserType + 300};
int type() const { return Type;}
int type() const override { return Type;}
virtual void paint( QPainter * painter,
const QStyleOptionGraphicsItem * option,
QWidget * widget = 0 ) override;