Skip to content

Commit 488f9dc

Browse files
committed
feat(ui): Display pressure also in inHg on weather page
Fixes #217
1 parent f3f777e commit 488f9dc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/blackgui/components/weathercomponent.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,9 @@ namespace BlackGui::Components
252252
ui->tvp_CloudLayers->updateContainer(gridPoint.getCloudLayers());
253253
ui->tvp_WindLayers->updateContainer(gridPoint.getWindLayers());
254254
const CCoordinateGeodetic position = gridPoint.getPosition();
255-
const double pressureAtMsl = gridPoint.getPressureAtMsl().value(CPressureUnit::hPa());
256-
const QString status = QStringLiteral("Weather Position: %1 %2\nPressure (MSL): %3 hPa").arg(position.latitude().toWgs84(), position.longitude().toWgs84()).arg(pressureAtMsl);
255+
const double pressureAtMslHpa = gridPoint.getPressureAtMsl().value(CPressureUnit::hPa());
256+
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);
257258
ui->lbl_Status->setText(status);
258259
}
259260

0 commit comments

Comments
 (0)