summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qsharedpointer.cpp
diff options
context:
space:
mode:
authorMorteza Jamshidi <morteza.jamshidi@qt.io>2024-10-30 12:34:30 +0100
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2024-11-08 10:59:43 +0100
commit34b5e43e6259c6362c642a244ceb26d482f35b82 (patch)
tree7f4cc92f703ac431de21b8161873ad558e9b3b23 /src/corelib/tools/qsharedpointer.cpp
parent8ec25c9d6b6470c0771fe7b70c22b055ac001fd8 (diff)
QDoubleSpinBox: Use QLocale to omit group separators
Instead of removing group separators after conversion, we can omit them using QLocale. The decimal point and group separators can be the same character, if the user configures the system locale accordingly. Add a test that compares the text shown by the spinbox with what the locale would do. Since the C locale sets the OmitGroupSeperator number option by default, cover several cases to verify that we explicitly set the correct number options based on the QDoubleSpinBox property, and implement a customized system locale that returns the same character for group separator and decimal point. Fixes: QTBUG-77939 Pick-to: 6.8 Change-Id: I257ea44ed988c70cb4fc0cfc81c3b366c0a431eb Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/corelib/tools/qsharedpointer.cpp')
0 files changed, 0 insertions, 0 deletions