Engauge Digitizer  2
GraphicsPointEllipse.h
1 #ifndef GRAPHICS_POINT_ELLIPSE_H
2 #define GRAPHICS_POINT_ELLIPSE_H
3 
4 #include <QGraphicsEllipseItem>
5 #include <QPointF>
6 
7 class GraphicsPoint;
8 
10 class GraphicsPointEllipse : public QGraphicsEllipseItem
11 {
12 public:
14  GraphicsPointEllipse(GraphicsPoint &graphicsPoint,
15  const QRect &rect);
16 
18  QVariant itemChange(GraphicsItemChange change, const QVariant &value);
20  void setRadius(int radius);
21 
22 private:
24 
25  // Reference to the GraphicsPoint that this class belongs to
26  GraphicsPoint &m_graphicsPoint;
27 };
28 
29 #endif // GRAPHICS_POINT_ELLIPSE_H
This class add event handling to QGraphicsEllipseItem.
Graphics item for drawing a circular or polygonal Point.
Definition: GraphicsPoint.h:33
QVariant itemChange(GraphicsItemChange change, const QVariant &value)
Intercept moves by dragging so moved items can be identified. This replaces unreliable hit tests...
void setRadius(int radius)
Update the radius.