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

Method resolutionEdited

src/gui/print_widget.cpp:1047–1058  ·  view source on GitHub ↗

slot

Source from the content-addressed store, hash-verified

1045
1046// slot
1047void 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
1061void PrintWidget::differentScaleClicked(bool checked)

Callers

nothing calls this directly

Calls 1

setResolutionMethod · 0.45

Tested by

no test coverage detected