slot
| 1045 | |
| 1046 | // slot |
| 1047 | void PrintWidget::resolutionEdited() |
| 1048 | { |
| 1049 | auto resolution_text = dpi_combo->currentText(); |
| 1050 | auto index_of_space = resolution_text.indexOf(QLatin1Char(' ')); |
| 1051 | auto dpi_value = resolution_text.leftRef(index_of_space).toInt(); |
| 1052 | if (dpi_value > 0) |
| 1053 | { |
| 1054 | auto pos = dpi_combo->lineEdit()->cursorPosition(); |
| 1055 | map_printer->setResolution(dpi_value); |
| 1056 | dpi_combo->lineEdit()->setCursorPosition(pos); |
| 1057 | } |
| 1058 | } |
| 1059 | |
| 1060 | // slot |
| 1061 | void PrintWidget::differentScaleClicked(bool checked) |
nothing calls this directly
no test coverage detected