Engauge Digitizer
2
Graphics
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
12
GraphicsArcItem::GraphicsArcItem
(
double
x,
13
double
y,
14
double
width,
15
double
height,
16
QGraphicsItem *parent) :
17
QGraphicsEllipseItem(x,
18
y,
19
width,
20
height,
21
parent)
22
{
23
}
24
25
GraphicsArcItem::GraphicsArcItem
(
const
QRectF &rect,
26
QGraphicsItem *parent) :
27
QGraphicsEllipseItem (rect,
28
parent)
29
{
30
}
31
32
void
GraphicsArcItem::paint
(QPainter *painter,
33
const
QStyleOptionGraphicsItem *
/* option */
,
34
QWidget *
/* widget */
)
35
{
36
painter->setPen (pen ());
37
painter->drawArc (rect(),
38
startAngle (),
39
spanAngle());
40
}
GraphicsArcItem::GraphicsArcItem
GraphicsArcItem(double x, double y, double width, double height, QGraphicsItem *parent=0)
Constructor with individual coordinates.
Definition:
GraphicsArcItem.cpp:12
GraphicsArcItem.h
GraphicsArcItem::paint
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
Paint without interior fill.
Definition:
GraphicsArcItem.cpp:32
Generated on Sat Jan 4 2020 12:00:00 for Engauge Digitizer by
1.8.16