--- a/src/tools/basetool.cpp Tue Sep 28 00:21:09 2021 +0300 +++ b/src/tools/basetool.cpp Tue Sep 28 22:14:00 2021 +0300 @@ -1,4 +1,5 @@ #include "basetool.h" -BaseTool::BaseTool(Model*, QObject* parent) : - QObject{parent} {} +BaseTool::BaseTool(Model*, QWidget *parent) : + QObject{parent}, + parentWidget{parent} {}