Fix deprecation warnings about QLocale and the C-word

Change-Id: I1a9101cfdbaea040601916bb3c519518ab8caa54
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
hjk
2024-05-24 09:59:15 +02:00
parent eec48b8f8e
commit 708adca904
2 changed files with 2 additions and 2 deletions

View File

@@ -240,7 +240,7 @@ void GeneralSettingsWidget::fillLanguageBox() const
if (hasQmFilesForLocale(locale, creatorTrPath.toString())) {
QLocale tmpLocale(locale);
QString languageItem = QLocale::languageToString(tmpLocale.language()) + QLatin1String(" (")
+ QLocale::countryToString(tmpLocale.country()) + QLatin1Char(')');
+ QLocale::territoryToString(tmpLocale.territory()) + QLatin1Char(')');
m_languageBox->addItem(languageItem, locale);
if (locale == currentLocale)
m_languageBox->setCurrentIndex(m_languageBox->count() - 1);