Changeset View
Changeset View
Standalone View
Standalone View
commands/tools/polygonal/kpToolPolygonalCommand.cpp
Show All 33 Lines | |||||
34 | #include "document/kpDocument.h" | 34 | #include "document/kpDocument.h" | ||
35 | #include "kpDefs.h" | 35 | #include "kpDefs.h" | ||
36 | #include "imagelib/kpImage.h" | 36 | #include "imagelib/kpImage.h" | ||
37 | #include "tools/polygonal/kpToolPolygonalBase.h" | 37 | #include "tools/polygonal/kpToolPolygonalBase.h" | ||
38 | 38 | | |||
39 | 39 | | |||
40 | struct kpToolPolygonalCommandPrivate | 40 | struct kpToolPolygonalCommandPrivate | ||
41 | { | 41 | { | ||
42 | kpToolPolygonalBase::DrawShapeFunc drawShapeFunc; | 42 | kpToolPolygonalBase::DrawShapeFunc drawShapeFunc{}; | ||
43 | 43 | | |||
44 | QPolygon points; | 44 | QPolygon points; | ||
45 | QRect boundingRect; | 45 | QRect boundingRect; | ||
46 | 46 | | |||
47 | kpColor fcolor; | 47 | kpColor fcolor; | ||
48 | int penWidth; | 48 | int penWidth{}; | ||
49 | kpColor bcolor; | 49 | kpColor bcolor; | ||
50 | 50 | | |||
51 | kpImage oldImage; | 51 | kpImage oldImage; | ||
52 | }; | 52 | }; | ||
53 | 53 | | |||
54 | kpToolPolygonalCommand::kpToolPolygonalCommand (const QString &name, | 54 | kpToolPolygonalCommand::kpToolPolygonalCommand (const QString &name, | ||
55 | kpToolPolygonalBase::DrawShapeFunc drawShapeFunc, | 55 | kpToolPolygonalBase::DrawShapeFunc drawShapeFunc, | ||
56 | const QPolygon &points, | 56 | const QPolygon &points, | ||
▲ Show 20 Lines • Show All 68 Lines • Show Last 20 Lines |