slot
| 679 | |
| 680 | // slot |
| 681 | void PrintWidget::propertiesClicked() |
| 682 | { |
| 683 | if (map_printer && map_printer->isPrinter()) |
| 684 | { |
| 685 | std::shared_ptr<void> buffer; // must not be destroyed before printer. |
| 686 | auto printer = map_printer->makePrinter(); |
| 687 | Q_ASSERT(printer->outputFormat() == QPrinter::NativeFormat); |
| 688 | if (PlatformPrinterProperties::execDialog(printer.get(), buffer, this) == QDialog::Accepted) |
| 689 | map_printer->takePrinterSettings(printer.get()); |
| 690 | } |
| 691 | } |
| 692 | |
| 693 | void PrintWidget::updatePaperSizes(const QPrinterInfo* target) const |
| 694 | { |
nothing calls this directly
no test coverage detected