101:910890292639 | 103:94719518e310 |
---|---|
1 #include <QMessageBox> | |
1 #include "drawtool.h" | 2 #include "drawtool.h" |
2 | 3 |
3 DrawTool::DrawTool(QObject* parent) : | 4 DrawTool::DrawTool(QObject* parent) : |
4 BaseTool{parent} {} | 5 BaseTool{parent} {} |
5 | 6 |
12 QString DrawTool::toolTip() const | 13 QString DrawTool::toolTip() const |
13 { | 14 { |
14 static const QString result = tr("Draw new elements into the model."); | 15 static const QString result = tr("Draw new elements into the model."); |
15 return result; | 16 return result; |
16 } | 17 } |
18 | |
19 bool DrawTool::mouseReleased(const BaseTool::MouseEventData &event) | |
20 { | |
21 QMessageBox::information(nullptr, "hleelo", "it works"); | |
22 } |