diff -r e628fc2e0c72 -r 03f8e6d42e13 src/tools/basetool.cpp --- a/src/tools/basetool.cpp Thu Mar 03 21:13:16 2022 +0200 +++ b/src/tools/basetool.cpp Fri Mar 04 11:37:50 2022 +0200 @@ -1,5 +1,9 @@ #include "basetool.h" +#include "document.h" -BaseTool::BaseTool(Model*, QWidget *parent) : - QObject{parent}, - parentWidget{parent} {} +BaseTool::BaseTool(Document *document) : + QObject{document}, + parentWidget{document}, + document{document} +{ +}