summaryrefslogtreecommitdiffstats
path: root/src/gui/painting
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2022-11-01 17:04:52 +0100
committerEdward Welbourne <edward.welbourne@qt.io>2023-01-10 19:42:27 +0100
commit377a9f77680289cac8ebd8fd14d21eba205bdc3a (patch)
tree50953a70f3e4ee432d402fd07527dd75f9cf6eda /src/gui/painting
parent9a2198f9cdd5df482c64a52cb5d1e372ac24610c (diff)
QLocaleData::numberToCLocale(): clarify some conditionals and comments
Some of the complex conditionals were done in two stages, with an outer condition on a block with a comment explaining an inner condition. Rework those to simpler statements in the conditions and move the preconditions of what each comment explains to the outer conditional. In the process, refine some of the conditionals. All group-size checks should be conditioned on last_separator_idx != -1, since we only constrain grouping by its rules, when present. The grouping separator can be empty (in system locale, if configured by user) so grouping can't be mandatory. Change-Id: Id3af7aafa6f70ecaea020a9fe0d6031f1ed9f84e Reviewed-by: Ievgenii Meshcheriakov <ievgenii.meshcheriakov@qt.io>
Diffstat (limited to 'src/gui/painting')
0 files changed, 0 insertions, 0 deletions