Thu, 29 Mar 2018 12:10:54 +0300
started work on the pattern editor
1363
b725b7fb63a5
started work on the pattern editor
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
1 | #include "pattern.h" |
b725b7fb63a5
started work on the pattern editor
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
2 | |
b725b7fb63a5
started work on the pattern editor
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
3 | ColoredPolygon::ColoredPolygon(const QPolygonF& polygon, LDColor color) : |
b725b7fb63a5
started work on the pattern editor
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
4 | geometry {polygon}, |
b725b7fb63a5
started work on the pattern editor
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
5 | color {color} {} |
b725b7fb63a5
started work on the pattern editor
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
6 | |
b725b7fb63a5
started work on the pattern editor
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
7 | Pattern::Pattern(const QSizeF& size) : |
b725b7fb63a5
started work on the pattern editor
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
8 | canvasSize {size} |
b725b7fb63a5
started work on the pattern editor
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
9 | { |
b725b7fb63a5
started work on the pattern editor
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
10 | |
b725b7fb63a5
started work on the pattern editor
Teemu Piippo <teemu@hecknology.net>
parents:
diff
changeset
|
11 | } |