Skip to content

Commit

Permalink
feat(ui): Display pressure with fixed number of digits on weather page
Browse files Browse the repository at this point in the history
  • Loading branch information
ltoenning committed Nov 26, 2023
1 parent 488f9dc commit 9774857
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/blackgui/components/weathercomponent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ namespace BlackGui::Components
const CCoordinateGeodetic position = gridPoint.getPosition();
const double pressureAtMslHpa = gridPoint.getPressureAtMsl().value(CPressureUnit::hPa());
const double pressureAtMslInHg = gridPoint.getPressureAtMsl().value(CPressureUnit::inHg());
const QString status = QStringLiteral("Weather Position: %1 %2\nPressure (MSL): %3 hPa / %4 inHg").arg(position.latitude().toWgs84(), position.longitude().toWgs84()).arg(pressureAtMslHpa).arg(pressureAtMslInHg);
const QString status = QStringLiteral("Weather Position: %1 %2\nPressure (MSL): %3 hPa / %4 inHg").arg(position.latitude().toWgs84(), position.longitude().toWgs84()).arg(pressureAtMslHpa, 0, 'f', 0).arg(pressureAtMslInHg, 0, 'f', 2);
ui->lbl_Status->setText(status);
}

Expand Down

0 comments on commit 9774857

Please sign in to comment.