diff options
author | David Schulz <david.schulz@digia.com> | 2012-11-23 09:31:03 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-11-23 17:04:00 +0100 |
commit | dae8d2505d6b6c591429768c10ae3ca190679d41 (patch) | |
tree | 8feab16aa3ae17e410c0ef222a5ec6b79962eb65 /examples/widgets/graphicsview/diagramscene/arrow.h | |
parent | cbf3771e86272c10519394627784d6c1088f3a3b (diff) |
QtBase: examples/widgets/graphicsview/ codestyle
Change-Id: I501066b5eb5a1557d510e0ec20b5270e8c12704a
Reviewed-by: hjk <qthjk@ovi.com>
Diffstat (limited to 'examples/widgets/graphicsview/diagramscene/arrow.h')
-rw-r--r-- | examples/widgets/graphicsview/diagramscene/arrow.h | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/examples/widgets/graphicsview/diagramscene/arrow.h b/examples/widgets/graphicsview/diagramscene/arrow.h index 8ccf937725..f6cd60b241 100644 --- a/examples/widgets/graphicsview/diagramscene/arrow.h +++ b/examples/widgets/graphicsview/diagramscene/arrow.h @@ -63,22 +63,17 @@ public: Arrow(DiagramItem *startItem, DiagramItem *endItem, QGraphicsItem *parent = 0); - int type() const - { return Type; } + int type() const { return Type; } QRectF boundingRect() const; QPainterPath shape() const; - void setColor(const QColor &color) - { myColor = color; } - DiagramItem *startItem() const - { return myStartItem; } - DiagramItem *endItem() const - { return myEndItem; } + void setColor(const QColor &color) { myColor = color; } + DiagramItem *startItem() const { return myStartItem; } + DiagramItem *endItem() const { return myEndItem; } void updatePosition(); protected: - void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, - QWidget *widget = 0); + void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0); private: DiagramItem *myStartItem; @@ -88,4 +83,4 @@ private: }; //! [0] -#endif +#endif // ARROW_H |