diff -r d922431eacf7 -r 1f42c03fafca src/ui/canvas.cpp --- a/src/ui/canvas.cpp Sun Jul 25 16:29:08 2021 +0300 +++ b/src/ui/canvas.cpp Sun Jul 25 20:29:14 2021 +0300 @@ -77,10 +77,7 @@ this->updateGridMatrix(); this->update(); } - MouseMoveInfo info; - info.invoker = this; - info.worldPosition = this->worldPosition; - emit mouseMove(info); + Q_EMIT this->mouseMove(this); PartRenderer::mouseMoveEvent(event); } @@ -95,10 +92,7 @@ { if (this->totalMouseMove < (2.0 / sqrt(2)) * 5.0) { - MouseClickInfo info; - info.worldPosition = this->worldPosition; - info.invoker = this; - emit mouseClick(info); + Q_EMIT this->mouseClick(this); } PartRenderer::mouseReleaseEvent(event); }