Engauge Digitizer  2
GraphicsArcItem.h
1 /******************************************************************************************************
2  * (C) 2014 markummitchell@github.com. This file is part of Engauge Digitizer, which is released *
3  * under GNU General Public License version 2 (GPLv2) or (at your option) any later version. See file *
4  * LICENSE or go to gnu.org/licenses for details. Distribution requires prior written permission. *
5  ******************************************************************************************************/
6 
7 #ifndef GRAPHICS_ARCITEM_H
8 #define GRAPHICS_ARCITEM_H
9 
10 #include <QGraphicsEllipseItem>
11 
17 class GraphicsArcItem : public QGraphicsEllipseItem
18 {
19 public:
21  GraphicsArcItem(double x,
22  double y,
23  double width,
24  double height,
25  QGraphicsItem *parent = 0);
26 
28  GraphicsArcItem(const QRectF &rect,
29  QGraphicsItem *parent = 0);
30 
32  virtual void paint (QPainter *painter,
33  const QStyleOptionGraphicsItem *option,
34  QWidget *widget);
35 
36 private:
38 
39 };
40 
41 #endif // GRAPHICS_ARCITEM_H
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
Paint without interior fill.
Draw an arc as an ellipse but without lines from the center to the start and end points.