Engauge Digitizer 2
Loading...
Searching...
No Matches
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
13class GraphicsArcItem : public QGraphicsEllipseItem
14{
15public:
17 GraphicsArcItem(double x,
18 double y,
19 double width,
20 double height,
21 QGraphicsItem *parent = 0);
22
24 GraphicsArcItem(const QRectF &rect,
25 QGraphicsItem *parent = 0);
26
29 virtual QRectF boundingRect() const;
30
32 virtual void paint (QPainter *painter,
33 const QStyleOptionGraphicsItem *option,
34 QWidget *widget);
35
36private:
38
39};
40
41#endif // GRAPHICS_ARCITEM_H
Draw an arc as an ellipse but without lines from the center to the start and end points.
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
Paint without interior fill.
virtual QRectF boundingRect() const
QGraphicsEllipseItem ignored transformation when computing bounding rectangle, although it should so ...