Mon, 19 Jul 2021 23:41:52 +0300
added preview layer code and fixed build warnings
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 | |
104 | 19 | bool DrawTool::mouseClick(const Canvas::MouseClickInfo& info) |
103 | 20 | { |
104 | 21 | static_cast<void>(info); |
103 | 22 | QMessageBox::information(nullptr, "hleelo", "it works"); |
104 | 23 | return true; |
103 | 24 | } |