diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2018-08-13 15:21:58 +0200 |
---|---|---|
committer | Edward Welbourne <edward.welbourne@qt.io> | 2018-08-22 18:00:14 +0000 |
commit | c1b15005c6594d0a0828190c858d9ab8ab3353b5 (patch) | |
tree | 1a3443dea95e6f087a635b06913ef5412e5edd9a /src/corelib/itemmodels/qstringlistmodel.cpp | |
parent | bbee6fac338b54a3f541bec06ef9bf554aa7f83a (diff) |
Fix handling of default content locale data
We iterate theoretically many sources (albeit there's only really ever
one) for this data, so accumulate instead of only keeping the last
(and initialize it as the list it always ended up being, not a
dictionary, so that this can work).
The form of each token is a locale name, so it may be lang_Script just
as readily as lang_LAND; so parse (and validate) the tags more
faithfully to catch both cases. Abstract that parsing into a function
and use it in both places that need it.
Change-Id: Ibdbc4eafefab6a5ef70646d9fea150f2cb408d05
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@qt.io>
Diffstat (limited to 'src/corelib/itemmodels/qstringlistmodel.cpp')
0 files changed, 0 insertions, 0 deletions