src/tools/circletool.cpp

changeset 186
922662adb72a
child 187
30204975694a
equal deleted inserted replaced
185:a38a0eb007b0 186:922662adb72a
1 #include "circletool.h"
2
3 CircleTool::CircleTool(Document *document) :
4 AbstractDrawTool{document}
5 {
6 }
7
8 QString CircleTool::name() const
9 {
10 return tr("Circle");
11 }
12
13 QString CircleTool::toolTip() const
14 {
15 return tr("Draw circular primitives like circles or discs");
16 }
17
18 void CircleTool::overpaint(Canvas *canvas, QPainter *painter) const
19 {
20 if (this->previewPolygon.size() >= 2)
21 {
22 canvas->drawWorldPolyline()
23 }
24 }
25
26 QString CircleTool::iconName() const
27 {
28 return ":/icons/linetype-circularprimitive.png";
29 }
30
31 void CircleTool::closeShape()
32 {
33
34 }

mercurial