49 if (event -> button() == Qt::LeftButton) {
83 QPointF pos =
m_scene -> snapToGrid(event -> scenePos());
90 QPointF center(-width/2, -height/2);
92 m_ellipse -> setRect(QRectF(center, QSizeF(width, height)));
102 if (event -> button() == Qt::RightButton) {
QETElementEditor * m_editor
bool mouseMoveEvent(QGraphicsSceneMouseEvent *event) override
ESEventAddRect::mouseMoveEvent.
bool mouseReleaseEvent(QGraphicsSceneMouseEvent *event) override
ESEventAddEllipse::mouseReleaseEvent.
bool mousePressEvent(QGraphicsSceneMouseEvent *event) override
ESEventAddEllipse::mousePressEvent.
void updateHelpCross(const QPointF &p)
ESEventAddEllipse(ElementScene *scene)
ESEventAddEllipse::ESEventAddEllipse.
~ESEventAddEllipse() override
ESEventAddEllipse::~ESEventAddEllipse.
QPointF snapToGrid(QPointF point)