slot
| 604 | |
| 605 | // slot |
| 606 | void MapPrinter::setCustomPageSize(const QSizeF& dimensions) |
| 607 | { |
| 608 | if ((page_format.page_size != QPageSize::Custom || |
| 609 | page_format.paper_dimensions != dimensions) && |
| 610 | ! dimensions.isEmpty()) |
| 611 | { |
| 612 | page_format.page_size = QPageSize::Custom; |
| 613 | page_format.orientation = MapPrinterPageFormat::Portrait; |
| 614 | page_format.paper_dimensions = dimensions; |
| 615 | updatePaperDimensions(); |
| 616 | emit pageFormatChanged(page_format); |
| 617 | } |
| 618 | } |
| 619 | |
| 620 | // slot |
| 621 | void MapPrinter::setPageOrientation(const MapPrinterPageFormat::Orientation orientation) |
no test coverage detected