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

Function comparePrinterConfig

test/file_format_t.cpp:180–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178
179
180 void comparePrinterConfig(const MapPrinterConfig& copy, const MapPrinterConfig& orig)
181 {
182 QCOMPARE(copy.center_print_area, orig.center_print_area);
183 QCOMPARE(copy.options, orig.options);
184 QCOMPARE(copy.page_format, orig.page_format);
185 // Compare print area with reasonable precision, here: 0.1 mm
186 QCOMPARE((copy.print_area.topLeft()*10.0).toPoint(), (orig.print_area.topLeft()*10.0).toPoint());
187 QCOMPARE((copy.print_area.size()*10.0).toSize(), (orig.print_area.size()*10.0).toSize());
188 QCOMPARE(copy.printer_name, orig.printer_name);
189 QCOMPARE(copy.single_page_print_area, orig.single_page_print_area);
190 }
191
192 void compareSymbol(const Symbol& actual, const Symbol& expected)
193 {

Callers 1

saveAndLoadMethod · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected