| 36 | namespace OpenOrienteering { |
| 37 | |
| 38 | PrintTool::PrintTool(MapEditorController* editor, MapPrinter* map_printer) |
| 39 | : MapEditorTool { editor, Other, nullptr } |
| 40 | , map_printer { map_printer } |
| 41 | , region { Unknown } |
| 42 | , dragging { false } |
| 43 | { |
| 44 | Q_ASSERT(editor); |
| 45 | Q_ASSERT(map_printer); |
| 46 | |
| 47 | connect(map_printer, &MapPrinter::printAreaChanged, this, &PrintTool::updatePrintArea); |
| 48 | connect(map_printer, &MapPrinter::pageFormatChanged, this, &PrintTool::updatePrintArea); |
| 49 | // Page breaks may change upon scale changes. |
| 50 | connect(map_printer, &MapPrinter::optionsChanged, this, &PrintTool::updatePrintArea); |
| 51 | } |
| 52 | |
| 53 | PrintTool::~PrintTool() |
| 54 | { |
nothing calls this directly
no outgoing calls
no test coverage detected