mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-09-28 04:54:13 +02:00
Change live cursor-coordinate readout on running ESEvent
During an ESEvent, the mouse position was used without format with `snapToGrid` to display the coordinates. However, since the `helpCross` is positioned using `snapToGrid` during these events, the displayed coordinates did not match the `helpCross` position. The command for sending the coordinates has been moved to the `ESEventInterface` to function 'updateHelpCross' and now transmits the position of the intersection point of the helpCross lines.
This commit is contained in:
@@ -121,7 +121,7 @@ void ElementScene::mouseMoveEvent(QGraphicsSceneMouseEvent *e)
|
||||
{
|
||||
if (m_event_interface) {
|
||||
if (m_event_interface -> mouseMoveEvent(e)) {
|
||||
emit mouseMoved(e -> scenePos());
|
||||
emit mouseMoved(snapToGrid(e->scenePos()));
|
||||
if (m_event_interface->isFinish()) {
|
||||
delete m_event_interface;
|
||||
m_event_interface = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user