Skip to content

Commit 9774857

Browse files
committed
feat(ui): Display pressure with fixed number of digits on weather page
1 parent 488f9dc commit 9774857

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/blackgui/components/weathercomponent.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ namespace BlackGui::Components
254254
const CCoordinateGeodetic position = gridPoint.getPosition();
255255
const double pressureAtMslHpa = gridPoint.getPressureAtMsl().value(CPressureUnit::hPa());
256256
const double pressureAtMslInHg = gridPoint.getPressureAtMsl().value(CPressureUnit::inHg());
257-
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);
257+
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);
258258
ui->lbl_Status->setText(status);
259259
}
260260

0 commit comments

Comments
 (0)