Commit 4d8b5e24 authored by Stefan Gerlach's avatar Stefan Gerlach

[locale] avoid missing group separator of C locale and problems related

parent 1962d672
......@@ -70,7 +70,9 @@ constexpr std::add_const_t<T>& qAsConst(T& t) noexcept {
// define number locale from setting (using system locale when QLocale::AnyLanguage)
#define SET_NUMBER_LOCALE \
QLocale::Language numberLocaleLanguage = static_cast<QLocale::Language>(KSharedConfig::openConfig()->group("Settings_General").readEntry( QLatin1String("DecimalSeparatorLocale"), static_cast<int>(QLocale::Language::AnyLanguage) )); \
QLocale numberLocale(numberLocaleLanguage == QLocale::AnyLanguage ? QLocale() : numberLocaleLanguage);
QLocale numberLocale(numberLocaleLanguage == QLocale::AnyLanguage ? QLocale() : numberLocaleLanguage); \
if (numberLocale.language() == QLocale::Language::C) \
numberLocale.setNumberOptions(QLocale::DefaultNumberOptions);
//////////////////////// LineEdit Access ///////////////////////////////
#define SET_INT_FROM_LE(var, le) { \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment