--- a/src/mainwindow.cpp Fri Feb 05 14:23:16 2021 +0200 +++ b/src/mainwindow.cpp Sun May 16 22:41:00 2021 +0300 @@ -405,3 +405,25 @@ } } } + +void MainWindow::canvasMousePressed(QMouseEvent *event) +{ + +} + +void MainWindow::canvasMouseReleased(QMouseEvent *event) +{ + BaseTool::MouseEventData eventData; + eventData.ev = event; + // Qt::KeyboardModifiers keymods; + // bool mouseMoved; + // Qt::MouseButtons releasedButtons; + if (this->selectedTool != nullptr) + { + this->selectedTool->mouseReleased(eventData); + } +} + +void MainWindow::canvasMouseDoubleClicked(QMouseEvent* event){} +void MainWindow::canvasMouseMoved(QMouseEvent*){} +void MainWindow::canvasKeyReleased(QKeyEvent*){}