Sun, 16 May 2021 22:41:00 +0300
update
103 | 1 | #include <QMessageBox> |
96 | 2 | #include "drawtool.h" |
3 | ||
4 | DrawTool::DrawTool(QObject* parent) : | |
5 | BaseTool{parent} {} | |
6 | ||
7 | QString DrawTool::name() const | |
8 | { | |
9 | static const QString result = tr("Draw"); | |
10 | return result; | |
11 | } | |
12 | ||
13 | QString DrawTool::toolTip() const | |
14 | { | |
15 | static const QString result = tr("Draw new elements into the model."); | |
16 | return result; | |
17 | } | |
103 | 18 | |
19 | bool DrawTool::mouseReleased(const BaseTool::MouseEventData &event) | |
20 | { | |
21 | QMessageBox::information(nullptr, "hleelo", "it works"); | |
22 | } |