48 if (event -> button() == Qt::LeftButton) {
84 if (event -> button() == Qt::RightButton) {
108 if (event -> button() == Qt::LeftButton)
QETElementEditor * m_editor
ESEventAddPolygon(ElementScene *scene)
ESEventAddPolygon::ESEventAddPolygon.
void setClosed(bool close)
bool mousePressEvent(QGraphicsSceneMouseEvent *event) override
ESEventAddPolygon::mousePressEvent.
bool mouseMoveEvent(QGraphicsSceneMouseEvent *event) override
ESEventAddPolygon::mouseMoveEvent.
~ESEventAddPolygon() override
ESEventAddPolygon::~ESEventAddPolygon.
void updateHelpCross(const QPointF &p)
void removeLastPoint()
PartPolygon::removeLastPoint Remove the last point of polygon.
QPolygonF polygon
PartPolygon::polygon.
bool mouseReleaseEvent(QGraphicsSceneMouseEvent *event) override
ESEventAddPolygon::mouseReleaseEvent.
bool mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event) override
ESEventAddPolygon::mouseDoubleClickEvent.
QPointF snapToGrid(QPointF point)