Fix QTzTimeZonePrivate::displayName()'s fallback
It previously fell back on abbreviation, a very poor choice. The base class does better than that, so use its implementation instead. Pick-to: 6.0 Change-Id: I47cbfce815cd8b2b533d9c6aeebcf398e5852d02 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
df788cca8b
commit
f9fff26b2d
@ -902,7 +902,8 @@ QString QTzTimeZonePrivate::displayName(qint64 atMSecsSinceEpoch,
|
||||
Q_UNUSED(nameType);
|
||||
Q_UNUSED(locale);
|
||||
#endif
|
||||
return abbreviation(atMSecsSinceEpoch);
|
||||
// Fall back to base-class:
|
||||
return QTimeZonePrivate::displayName(atMSecsSinceEpoch, nameType, locale);
|
||||
}
|
||||
|
||||
QString QTzTimeZonePrivate::displayName(QTimeZone::TimeType timeType,
|
||||
|
Loading…
Reference in New Issue
Block a user