Fix units of work in tooltips for AllPlot and CPPlot

Also change wrong label in PMC (Coggan)
Fixes #3194
This commit is contained in:
Ale Martinez
2019-10-21 21:56:05 -03:00
parent f9694775d3
commit beac898601
4 changed files with 9 additions and 4 deletions

View File

@@ -2141,6 +2141,11 @@ CPPlot::pointHover(QwtPlotCurve *curve, int index)
units2 = tr("%1 %2").arg(yvalue, 0, 'f', RideFile::decimalsFor(rideSeries))
.arg(tr("J")); // Joule
} else if (criticalSeries == CriticalPowerWindow::work) {
units2 = tr("%1 %2").arg(yvalue, 0, 'f', 1)
.arg(tr("kJ")); // kJoule
} else if (criticalSeries == CriticalPowerWindow::kph) {
if (metricPace) units2 = tr("%1 kph").arg(yvalue, 0, 'f', RideFile::decimalsFor(rideSeries));