diff -r 8c9fff699241 -r 000781318c36 src/document.cpp --- a/src/document.cpp Wed Jul 28 13:22:51 2021 +0300 +++ b/src/document.cpp Fri Jul 30 01:28:39 2021 +0300 @@ -73,13 +73,13 @@ this->selectionChanged(resolve(this->ui.listView->selectionModel()->selection())); }); connect(this->model, &Model::dataChanged, this->renderer, qOverload<>(&Canvas::update)); - connect(this->renderer, &Canvas::mouseClick, this, [this](Canvas* canvas) + connect(this->renderer, &Canvas::mouseClick, this, [this](Canvas* canvas, QMouseEvent* event) { - Q_EMIT this->mouseClick(this, canvas); + Q_EMIT this->mouseClick(this, canvas, event); }); - connect(this->renderer, &Canvas::mouseMove, this, [this](Canvas* canvas) + connect(this->renderer, &Canvas::mouseMove, this, [this](Canvas* canvas, QMouseEvent* event) { - Q_EMIT this->mouseMove(this, canvas); + Q_EMIT this->mouseMove(this, canvas, event); }); connect(&this->vertexMap, &VertexMap::verticesChanged, [&]() {