| 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 | { |