src/tools/drawtool.cpp

changeset 143
7b62c52835a1
parent 139
72098474d362
child 152
03f8e6d42e13
equal deleted inserted replaced
142:e085f36e4d9f 143:7b62c52835a1
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");

mercurial