src/document.cpp

changeset 121
000781318c36
parent 118
8e1c9f18ae15
child 124
f9f308c8e0c5
--- 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, [&]()
 	{

mercurial