--- a/src/document.cpp Tue Mar 15 18:56:02 2022 +0200 +++ b/src/document.cpp Tue Mar 15 19:48:07 2022 +0200 @@ -24,6 +24,7 @@ #include "modeleditor.h" #include "tools/basetool.h" #include "tools/drawtool.h" +#include "tools/pathtool.h" #include "tools/selecttool.h" #include "tools/transformtool.h" @@ -83,7 +84,7 @@ { if (this->selectedTool != nullptr) { - this->selectedTool->mouseClick(this, canvas, event); + this->selectedTool->mouseClick(canvas, event); } }); connect(this->renderer, &Canvas::mouseMove, this, [this](Canvas* canvas, QMouseEvent* event) @@ -160,6 +161,7 @@ this->tools.reserve(3); this->tools.push_back(new SelectTool{this}); this->tools.push_back(new DrawTool{this}); + this->tools.push_back(new PathTool{this}); this->tools.push_back(new TransformTool{this}); for (BaseTool* const toolInstance : this->tools) {