Engauge Digitizer 2
|
This class add event handling to QGraphicsEllipseItem. More...
#include <GraphicsPointEllipse.h>
Signals | |
void | signalPointHoverEnter (QString) |
Signal for geometry window to highlight the current point upon hover enter. | |
void | signalPointHoverLeave (QString) |
Signal for geometry window to unhighlight the current point upon hover leave. |
Public Member Functions | |
GraphicsPointEllipse (GraphicsPoint &graphicsPoint, const QRect &rect) | |
Single constructor. | |
QVariant | itemChange (GraphicsItemChange change, const QVariant &value) |
Intercept moves by dragging so moved items can be identified. This replaces unreliable hit tests. | |
virtual void | hoverEnterEvent (QGraphicsSceneHoverEvent *event) |
Accept hover so point can be highlighted when cursor is over it as a guide to user. | |
virtual void | hoverLeaveEvent (QGraphicsSceneHoverEvent *event) |
Unhighlight this point. | |
void | setRadius (int radius) |
Update the radius. | |
void | setShadow (GraphicsPointEllipse *shadow) |
Bind this graphics item to its shadow. |
This class add event handling to QGraphicsEllipseItem.
Definition at line 17 of file GraphicsPointEllipse.h.
GraphicsPointEllipse::GraphicsPointEllipse | ( | GraphicsPoint & | graphicsPoint, |
const QRect & | rect ) |
Single constructor.
Definition at line 15 of file GraphicsPointEllipse.cpp.
|
virtual |
Accept hover so point can be highlighted when cursor is over it as a guide to user.
Definition at line 24 of file GraphicsPointEllipse.cpp.
|
virtual |
Unhighlight this point.
Definition at line 34 of file GraphicsPointEllipse.cpp.
QVariant GraphicsPointEllipse::itemChange | ( | GraphicsItemChange | change, |
const QVariant & | value ) |
Intercept moves by dragging so moved items can be identified. This replaces unreliable hit tests.
Definition at line 44 of file GraphicsPointEllipse.cpp.
void GraphicsPointEllipse::setRadius | ( | int | radius | ) |
Update the radius.
Definition at line 72 of file GraphicsPointEllipse.cpp.
void GraphicsPointEllipse::setShadow | ( | GraphicsPointEllipse * | shadow | ) |
Bind this graphics item to its shadow.
Definition at line 81 of file GraphicsPointEllipse.cpp.
|
signal |
Signal for geometry window to highlight the current point upon hover enter.
|
signal |
Signal for geometry window to unhighlight the current point upon hover leave.