mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
Merge pull request #951 from Joern-R/pull5
Details - Metrics Tab (UI Nit)
This commit is contained in:
@@ -427,6 +427,9 @@ FormField::FormField(FieldDefinition field, RideMetadata *meta) : definition(fie
|
||||
if (meta->sp.isMetric(field.name)) {
|
||||
field.type = FIELD_DOUBLE; // whatever they say, we want a double!
|
||||
units = meta->sp.rideMetric(field.name)->units(meta->context->athlete->useMetricUnits);
|
||||
// remove "seconds", since the field will be a QTimeEdit field
|
||||
if (units == "seconds" || units == tr("seconds")) units = "";
|
||||
// layout units name for screen
|
||||
if (units != "") units = QString(" (%1)").arg(units);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user