summaryrefslogtreecommitdiffstats
path: root/src/gui/painting
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2020-10-13 13:25:55 +0200
committerEdward Welbourne <edward.welbourne@qt.io>2020-11-08 03:14:11 +0100
commit8bf36025f5602e3067448941ee4d0ccca3928a40 (patch)
tree182bae6101fba03aa56a0e5e0a2e095b3bb2b5b1 /src/gui/painting
parentd11bf5fc2435819605695722d82f7af6ad70bc8b (diff)
Add some inline methods to make code more readable
Give QLocaleId matchesAny() and isValid() checks and some acceptance tests for their use as filters. Give QLocaleData a QLocaleId id(). A few messy pieces of code get easier to read. In the process, greatly simplify a do-while loop (sacrificing some pretest-before-loop optimizations - benchmarking shows they made negligible difference) and change a while loop to match its form, since it was doing essentially the same iteration and (thus) its condition was guaranteed true on the first iteration. Change-Id: I36b1a6ca8a3cf350b3f3abbe75b177e5a7637cd8 Reviewed-by: Andrei Golubev <andrei.golubev@qt.io> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/gui/painting')
0 files changed, 0 insertions, 0 deletions