18#ifndef QETGRAPHICSHANDLERITEM_H
19#define QETGRAPHICSHANDLERITEM_H
21#include <QGraphicsObject>
47 enum {
Type = UserType + 1200};
54 void paint(QPainter *painter,
55 const QStyleOptionGraphicsItem *option,
56 QWidget *widget)
override;
75 const QVector<QPointF> &points,
int size = 10);
The QetGraphicsHandlerItem class This graphics item represents a point, destined to be used as an han...
Definition qetgraphicshandleritem.h:37
static QVector< QetGraphicsHandlerItem * > handlerForPoint(const QVector< QPointF > &points, int size=10)
QetGraphicsHandlerItem::handlerForPoint.
Definition qetgraphicshandleritem.cpp:127
qreal currentSize() const
Definition qetgraphicshandleritem.h:60
qreal m_original_size
Definition qetgraphicshandleritem.h:69
@ Type
Definition qetgraphicshandleritem.h:47
QRectF m_br
Definition qetgraphicshandleritem.h:67
qreal currentSize
Definition qetgraphicshandleritem.h:40
void hoverEnterEvent(QGraphicsSceneHoverEvent *event) override
Definition qetgraphicshandleritem.cpp:89
void setCurrentSize(qreal size)
Definition qetgraphicshandleritem.cpp:113
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override
QetGraphicsHandlerItem::paint.
Definition qetgraphicshandleritem.cpp:68
qreal m_current_size
Definition qetgraphicshandleritem.h:68
void setColor(QColor color)
QetGraphicsHandlerItem::setColor.
Definition qetgraphicshandleritem.cpp:56
void setSize(qreal size)
Definition qetgraphicshandleritem.cpp:35
QRectF m_handler_rect
Definition qetgraphicshandleritem.h:66
int type() const override
Definition qetgraphicshandleritem.h:48
QColor m_color
Definition qetgraphicshandleritem.h:70
void hoverLeaveEvent(QGraphicsSceneHoverEvent *event) override
Definition qetgraphicshandleritem.cpp:101
QPen m_pen
Definition qetgraphicshandleritem.h:71
QRectF boundingRect() const override
QetGraphicsHandlerItem::boundingRect.
Definition qetgraphicshandleritem.cpp:47