MCPcopy Create free account
hub / github.com/OpenOrienteering/mapper / PrintTool

Method PrintTool

src/gui/print_tool.cpp:38–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36namespace OpenOrienteering {
37
38PrintTool::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
53PrintTool::~PrintTool()
54{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected