10 static const QPen polygonPen = {QBrush{Qt::black}, 2.0, Qt::DashLine}; |
10 static const QPen polygonPen = {QBrush{Qt::black}, 2.0, Qt::DashLine}; |
11 static const QPen pointPen = {QBrush{Qt::black}, 2.0}; |
11 static const QPen pointPen = {QBrush{Qt::black}, 2.0}; |
12 static const QBrush polygonBrush = {QColor{64, 255, 128, 192}}; |
12 static const QBrush polygonBrush = {QColor{64, 255, 128, 192}}; |
13 static const QBrush badPolygonBrush = {QColor{255, 96, 96, 192}}; |
13 static const QBrush badPolygonBrush = {QColor{255, 96, 96, 192}}; |
14 |
14 |
15 DrawTool::DrawTool(Model *model, QObject *parent) : |
15 DrawTool::DrawTool(Model *model, QWidget *parent) : |
16 BaseTool{model, parent} {} |
16 BaseTool{model, parent} {} |
17 |
17 |
18 QString DrawTool::name() const |
18 QString DrawTool::name() const |
19 { |
19 { |
20 static const QString result = tr("Draw"); |
20 static const QString result = tr("Draw"); |