Start: Use QStringLiteral

This commit is contained in:
Benjamin Bræstrup Sayoc
2025-02-09 18:13:46 +01:00
parent a59ad914ba
commit e2baa03d24
4 changed files with 28 additions and 28 deletions

View File

@@ -102,7 +102,7 @@ gsl::owner<QComboBox*> GeneralSettingsWidget::createLanguageComboBox()
auto langToStr = Gui::Translator::instance()->activeLanguage();
QByteArray language = hGrp->GetASCII("Language", langToStr.c_str()).c_str();
auto comboBox = gsl::owner<QComboBox*>(new QComboBox);
comboBox->addItem(QString::fromLatin1("English"), QByteArray("English"));
comboBox->addItem(QStringLiteral("English"), QByteArray("English"));
Gui::TStringMap list = Gui::Translator::instance()->supportedLocales();
int index {1};
for (auto it = list.begin(); it != list.end(); ++it, ++index) {