src/mainwindow.cpp

changeset 121
000781318c36
parent 111
1f42c03fafca
child 124
f9f308c8e0c5
--- a/src/mainwindow.cpp	Wed Jul 28 13:22:51 2021 +0300
+++ b/src/mainwindow.cpp	Fri Jul 30 01:28:39 2021 +0300
@@ -424,11 +424,11 @@
 	Q_UNUSED(event)
 }
 
-void MainWindow::canvasMouseReleased(Document* document, Canvas* canvas)
+void MainWindow::canvasMouseReleased(Document* document, Canvas* canvas, QMouseEvent* event)
 {
 	if (this->selectedTool != nullptr)
 	{
-		this->selectedTool->mouseClick(document, canvas);
+		this->selectedTool->mouseClick(document, canvas, event);
 	}
 }
 
@@ -437,11 +437,11 @@
 	Q_UNUSED(event)
 }
 
-void MainWindow::canvasMouseMoved(Document* document, Canvas* canvas)
+void MainWindow::canvasMouseMoved(Document* document, Canvas* canvas, QMouseEvent* event)
 {
 	if (this->selectedTool != nullptr)
 	{
-		this->selectedTool->mouseMove(document, canvas);
+		this->selectedTool->mouseMove(document, canvas, event);
 	}
 }
 

mercurial