mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-14 16:39:57 +00:00
Add RideItem ::color, ::isRun and ::present
.. as primary fields, and also load/save to cache.
This commit is contained in:
@@ -5839,7 +5839,7 @@ AllPlot::pointHover(QwtPlotCurve *curve, int index)
|
||||
// for speed curve add pace with units according to settings
|
||||
// only when the activity is a run.
|
||||
QString paceStr;
|
||||
if (curve->title() == tr("Speed") && rideItem && rideItem->isRun()) {
|
||||
if (curve->title() == tr("Speed") && rideItem && rideItem->isRun) {
|
||||
bool metricPace = appsettings->value(this, GC_PACE, true).toBool();
|
||||
QString paceunit = metricPace ? tr("min/km") : tr("min/mile");
|
||||
paceStr = tr("\n%1 %2").arg(context->athlete->useMetricUnits ? kphToPace(yvalue, metricPace) : mphToPace(yvalue, metricPace)).arg(paceunit);
|
||||
|
||||
Reference in New Issue
Block a user