summaryrefslogtreecommitdiffstats
path: root/examples/widgets/graphicsview/elasticnodes/edge.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/widgets/graphicsview/elasticnodes/edge.h')
-rw-r--r--examples/widgets/graphicsview/elasticnodes/edge.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/widgets/graphicsview/elasticnodes/edge.h b/examples/widgets/graphicsview/elasticnodes/edge.h
index 6ab71e3478..8a3cb7b19a 100644
--- a/examples/widgets/graphicsview/elasticnodes/edge.h
+++ b/examples/widgets/graphicsview/elasticnodes/edge.h
@@ -57,11 +57,11 @@ public:
void adjust();
enum { Type = UserType + 2 };
- int type() const { return Type; }
+ int type() const Q_DECL_OVERRIDE { return Type; }
protected:
- QRectF boundingRect() const;
- void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
+ QRectF boundingRect() const Q_DECL_OVERRIDE;
+ void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) Q_DECL_OVERRIDE;
private:
Node *source, *dest;