From b0a8c6edfa6c8710967432690902c67d4cbfbbd3 Mon Sep 17 00:00:00 2001 From: Ale Martinez Date: Wed, 10 Jun 2020 11:43:29 -0300 Subject: [PATCH] Add units to Load source for overlay widgets --- src/Train/VideoWindow.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Train/VideoWindow.cpp b/src/Train/VideoWindow.cpp index 8faf2097a..e08995654 100644 --- a/src/Train/VideoWindow.cpp +++ b/src/Train/VideoWindow.cpp @@ -326,9 +326,11 @@ void VideoWindow::telemetryUpdate(RealtimeData rtd) if (rtd.mode == ERG || rtd.mode == MRC) { p_meterWidget->Value = rtd.getLoad(); p_meterWidget->Text = QString("%1").arg(round(p_meterWidget->Value)); + p_meterWidget->AltText = tr("w"); } else { p_meterWidget->Value = rtd.getSlope(); p_meterWidget->Text = QString("%1").arg(p_meterWidget->Value, 0, 'f', 1); + p_meterWidget->AltText = tr("%"); } } else if (p_meterWidget->Source() == QString("Distance"))