aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/libpyside/pyside.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2022-11-25 09:47:45 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2022-11-25 15:49:41 +0100
commit52e3b960b30950ac7bb59bb31e00d6d1038828f1 (patch)
treee48e90c30749972139a4c4a9c7beeaac278fcab4 /sources/pyside6/libpyside/pyside.cpp
parentc5e1b51c3349d103ced8dea091cb815e356697d1 (diff)
PySide6: Fix float type overloads of QLocale.toCurrencyString()
QLocale.toCurrencyString() has a plethora of overloads from short/ushort to long long and float types. Since the overload sorter currently has no rules for preferring float over unsigned integer types, an unsigned conversion was done for float types with decimals, resulting in decimals being lost. This could arguably be fixed by adding rules for preferring float over unsigned integer types. However, since Python only knows int and float, it does not really make sense to generate a complex overload logic. Remove the unsigned and short overloads instead. Fixes: PYSIDE-2133 Pick-to: 6.4 6.2 Change-Id: Id2ef2ec02f4f962606851faf237d80196872eed2 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/pyside6/libpyside/pyside.cpp')
0 files changed, 0 insertions, 0 deletions