CorePlugin: Use Tr::tr instead of QCoreApplication::translate("Core"...

Change-Id: Idf0b8e9effedbacda7a4eedb5bf0f78918fce631
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
Eike Ziller
2022-07-05 13:56:04 +02:00
parent 10728efa3b
commit ae0032dfd5
7 changed files with 36 additions and 32 deletions

View File

@@ -25,6 +25,7 @@
#include "generalsettings.h"
#include "coreconstants.h"
#include "coreplugintr.h"
#include "icore.h"
#include "ui_generalsettings.h"
@@ -256,7 +257,7 @@ GeneralSettings::GeneralSettings()
setId(Constants::SETTINGS_ID_INTERFACE);
setDisplayName(GeneralSettingsWidget::tr("Interface"));
setCategory(Constants::SETTINGS_CATEGORY_CORE);
setDisplayCategory(QCoreApplication::translate("Core", "Environment"));
setDisplayCategory(Tr::tr("Environment"));
setCategoryIconPath(":/core/images/settingscategory_core.png");
setWidgetCreator([this] { return new GeneralSettingsWidget(this); });