fix -Winconsistent-missing-override

This commit is contained in:
wmayer
2018-07-22 17:19:36 +02:00
parent 8272abf5ae
commit 548f63fd0e
2 changed files with 3 additions and 3 deletions

View File

@@ -36,7 +36,7 @@ public:
enum {Type = QGraphicsItem::UserType + 103};
int type() const { return Type;}
int type() const override { return Type;}
virtual QRectF boundingRect() const override;
virtual QPainterPath shape() const override;
virtual void paint(QPainter * painter, const QStyleOptionGraphicsItem * option, QWidget * widget = 0 ) override;
@@ -48,7 +48,7 @@ public:
bool getHiddenEdge() { return(isHiddenEdge); }
void setSmoothEdge(bool b) { isSmoothEdge = b; }
bool getSmoothEdge() { return(isSmoothEdge); }
virtual void setPrettyNormal();
virtual void setPrettyNormal() override;
protected:
int projIndex; //index of edge in Projection. must exist.

View File

@@ -45,7 +45,7 @@ public:
int type() const { return Type;}
virtual void paint(QPainter * painter, const QStyleOptionGraphicsItem * option, QWidget * widget = 0 );
virtual QPainterPath shape() const { return path(); };
virtual QPainterPath shape() const { return path(); }
void setHighlighted(bool state);
virtual void setPrettyNormal();