| 1112 | |
| 1113 | |
| 1114 | void PathObject::transform(const QTransform& t) |
| 1115 | { |
| 1116 | if (t.isIdentity()) |
| 1117 | return; |
| 1118 | |
| 1119 | for (auto& coord : coords) |
| 1120 | { |
| 1121 | const auto p = t.map(MapCoordF{coord}); |
| 1122 | coord.setX(p.x()); |
| 1123 | coord.setY(p.y()); |
| 1124 | } |
| 1125 | pattern_origin = MapCoord{t.map(MapCoordF{getPatternOrigin()})}; |
| 1126 | setOutputDirty(); |
| 1127 | } |
| 1128 | |
| 1129 | |
| 1130 |
no test coverage detected