Engauge Digitizer 2
Loading...
Searching...
No Matches
GraphicsArcItem.cpp
Go to the documentation of this file.
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#include "GraphicsArcItem.h"
8#include <QDebug>
9#include <QPainter>
10#include <QGraphicsScene>
11
13 double y,
14 double width,
15 double height,
17 QGraphicsEllipseItem(x,
18 y,
19 width,
20 height,
21 parent)
22{
23}
24
27 QGraphicsEllipseItem (rect,
28 parent)
29{
30}
31
33 const QStyleOptionGraphicsItem * /* option */,
34 QWidget * /* widget */)
35{
36 painter->setPen (pen ());
37 painter->drawArc (rect(),
38 startAngle (),
39 spanAngle());
40}
const int INNER_RADIUS_MIN
GraphicsArcItem(double x, double y, double width, double height, QGraphicsItem *parent=0)
Constructor with individual coordinates.
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
Paint without interior fill.