qt6-bb10/tests/auto/widgets
Morteza Jamshidi d610103126 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
Change-Id: I257ea44ed988c70cb4fc0cfc81c3b366c0a431eb
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
(cherry picked from commit 34b5e43e6259c6362c642a244ceb26d482f35b82)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2024-11-08 12:32:26 +00:00
..
dialogs Cocoa: Use sheetParent to close sheet instead of transientParent 2024-11-04 17:48:56 +00:00
effects Change license for tests files 2024-02-04 09:56:42 +01:00
graphicsview Tests: Reduce the number of module includes 2024-11-04 19:42:27 +00:00
itemviews QHeaderView: update the view correctly in resetDefaultSectionSize 2024-11-01 23:53:56 +01:00
kernel Tests: Reduce the number of module includes 2024-11-04 19:42:27 +00:00
styles QStyle: block future changes that result in QPainter warnings 2024-11-01 22:54:06 +00:00
util Tests: Reduce the number of module includes 2024-11-04 19:42:27 +00:00
widgets QDoubleSpinBox: Use QLocale to omit group separators 2024-11-08 12:32:26 +00:00
CMakeLists.txt tests: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-17 21:56:49 +01:00