18 #include <QGraphicsSceneMouseEvent> 53 if (event -> button() == Qt::LeftButton) {
56 QPointF pos =
m_scene -> snapToGrid(event -> scenePos());
89 line.setP2(
m_scene -> snapToGrid(event -> scenePos()));
100 if (event -> button() == Qt::RightButton) {
QETElementEditor * m_editor
bool mouseReleaseEvent(QGraphicsSceneMouseEvent *event) override
ESEventAddLine::mouseReleaseEvent.
void updateHelpCross(const QPointF &p)
bool mouseMoveEvent(QGraphicsSceneMouseEvent *event) override
ESEventAddLine::mouseMoveEvent.
void setLine(const QLineF &line)
ESEventAddLine(ElementScene *scene)
ESEventAddLine::ESEventAddLine Constructor.
~ESEventAddLine() override
ESEventAddLine::~ESEventAddLine destructor.
bool mousePressEvent(QGraphicsSceneMouseEvent *event) override
ESEventAddLine::mousePressEvent.