From 2803dcf8b8cecfe0d45e7e19c1ce28c71474befb Mon Sep 17 00:00:00 2001 From: ChuckNr11 Date: Mon, 17 Aug 2026 14:10:15 +0200 Subject: [PATCH] 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. --- sources/editor/elementscene.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/editor/elementscene.cpp b/sources/editor/elementscene.cpp index 1692e2dbb..a87a2b6e7 100644 --- a/sources/editor/elementscene.cpp +++ b/sources/editor/elementscene.cpp @@ -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;