|
QElectroTech
0.8-dev
|
Go to the documentation of this file.
18 #ifndef QETGRAPHICSHANDLERITEM_H
19 #define QETGRAPHICSHANDLERITEM_H
21 #include <QGraphicsItem>
42 enum {
Type = UserType + 1200};
48 void paint(QPainter *painter,
49 const QStyleOptionGraphicsItem *option,
50 QWidget *widget)
override;
61 const QVector<QPointF> &points,
int size = 10);
64 #endif // QETGRAPHICSHANDLERITEM_H
@ Type
Definition: qetgraphicshandleritem.h:42
QRectF m_br
Definition: qetgraphicshandleritem.h:54
QRectF boundingRect() const override
QetGraphicsHandlerItem::boundingRect.
Definition: qetgraphicshandleritem.cpp:40
qreal m_size
Definition: qetgraphicshandleritem.h:55
QetGraphicsHandlerItem(qreal size=10)
QetGraphicsHandlerItem::QetGraphicsHandlerItem.
Definition: qetgraphicshandleritem.cpp:27
QPen m_pen
Definition: qetgraphicshandleritem.h:57
QColor m_color
Definition: qetgraphicshandleritem.h:56
int type() const override
Definition: qetgraphicshandleritem.h:43
The QetGraphicsHandlerItem class This graphics item represents a point, destined to be used as an han...
Definition: qetgraphicshandleritem.h:37
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override
QetGraphicsHandlerItem::paint.
Definition: qetgraphicshandleritem.cpp:60
void setColor(QColor color)
QetGraphicsHandlerItem::setColor.
Definition: qetgraphicshandleritem.cpp:48
QRectF m_handler_rect
Definition: qetgraphicshandleritem.h:53
static QVector< QetGraphicsHandlerItem * > handlerForPoint(const QVector< QPointF > &points, int size=10)
QetGraphicsHandlerItem::handlerForPoint.
Definition: qetgraphicshandleritem.cpp:87