Mon, 19 Jul 2021 19:28:16 +0300
Add connections
#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::mouseClick(const Canvas::MouseClickInfo& info) { static_cast<void>(info); QMessageBox::information(nullptr, "hleelo", "it works"); return true; }