summaryrefslogtreecommitdiffstats
path: root/src/plugins/sqldrivers
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2021-07-29 18:40:54 +0200
committerEdward Welbourne <edward.welbourne@qt.io>2021-08-10 19:43:03 +0200
commitd055abd1958879ff1775772cfb0d5039e975fe9c (patch)
tree4d26a66ca3c27341af910ccccdf92467b853ff05 /src/plugins/sqldrivers
parent33f9591e378a2162378d8be5e75a47adf034536b (diff)
Assert that special handling of '0' padding does what it should
When formatting numbers, if the fill character used to left-pad to field widths is '0', the code delegates that padding to the QLocaleData's ZeroPadded formatting option. Since we want the zeros before any minus sign, and don't want to subsequently add more zeros before it, check that this has worked as expected when calling replaceArgEscapes(), to confirm that it doesn't need to worry about that. Add some tests that verify the expected behavior. In the process, tidy up the code doing this. Rename a local variable to match our coding style, split a long line. Pick-to: 6.2 Change-Id: I7cc430c5bceb006cf4e226bca33da16bd2bb1937 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io> Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'src/plugins/sqldrivers')
0 files changed, 0 insertions, 0 deletions