| 437 | |
| 438 | |
| 439 | MapPrinter::MapPrinter(Map& map, const MapView* view, QObject* parent) |
| 440 | : QObject(parent) |
| 441 | , MapPrinterConfig(map.printerConfig()) |
| 442 | , map(map) |
| 443 | , view(view) |
| 444 | { |
| 445 | scale_adjustment = map.getScaleDenominator() / qreal(options.scale); |
| 446 | updatePaperDimensions(); |
| 447 | connect(&map.getGeoreferencing(), &Georeferencing::transformationChanged, this, &MapPrinter::mapScaleChanged); |
| 448 | } |
| 449 | |
| 450 | MapPrinter::~MapPrinter() = default; |
| 451 |
nothing calls this directly
no test coverage detected