Sun, 16 May 2021 22:41:00 +0300
update
#include <QMessageBox> #include "drawtool.h" DrawTool::DrawTool(QObject* parent) : BaseTool{parent} {} QString DrawTool::name() const { static const QString result = tr("Draw"); return result; } QString DrawTool::toolTip() const { static const QString result = tr("Draw new elements into the model."); return result; } bool DrawTool::mouseReleased(const BaseTool::MouseEventData &event) { QMessageBox::information(nullptr, "hleelo", "it works"); }