src/mainwindow.cpp

changeset 103
94719518e310
parent 97
d9a3b153f679
child 104
cd4df75924b7
--- 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*){}

mercurial