diff options
| author | Edward Welbourne <edward.welbourne@qt.io> | 2020-11-24 17:32:50 +0100 |
|---|---|---|
| committer | Edward Welbourne <edward.welbourne@qt.io> | 2020-11-27 13:26:53 +0100 |
| commit | cdcfb7c4f905fd75887d9f7aa5646dd91edde3ab (patch) | |
| tree | 17b26b7d1bda7fd406e90448a7a38cb79f7e339a /src/gui/doc/snippets/plaintextlayout | |
| parent | 380d97e1bd15e753907c378a070bdf7f1c1cf06e (diff) | |
QDateTimeParser: fix handling of AM/PM texts
An AM/PM field is only fixed-width if the locale's AM and PM texts
have the same length, which we shouldn't take for granted.
(They're not in Albanian, Bosnian or Cherokee.)
In sectionMaxSize(), count tells us the case, so we shouldn't be
taking both case variants into account, only the one we need.
Change-Id: I03b985cc5bf74c34742480558cef08af6343ed93
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/gui/doc/snippets/plaintextlayout')
0 files changed, 0 insertions, 0 deletions
