Translations: Replace QCoreApplication::translate() with Tr::tr()

Calling <Module>::Tr::tr() is preferred over
QCoreApplication::translate("::<Module>", "..."). This changes
occurrences in .cpp files.

Change-Id: I3311ef0dbf3e7d105a3f181b6b988f3b444468f1
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Alessandro Portale
2023-02-09 11:43:49 +01:00
parent 14280acfd9
commit 226799858c
26 changed files with 59 additions and 68 deletions

View File

@@ -18,6 +18,7 @@
#include <coreplugin/icore.h>
#include <debugger/analyzer/analyzericons.h>
#include <debugger/debuggertr.h>
#include <QCheckBox>
#include <QFormLayout>
@@ -126,7 +127,7 @@ CppcheckOptionsPage::CppcheckOptionsPage(CppcheckTool &tool, CppcheckTrigger &tr
setId(Constants::OPTIONS_PAGE_ID);
setDisplayName(Tr::tr("Cppcheck"));
setCategory("T.Analyzer");
setDisplayCategory(QCoreApplication::translate("::Debugger", "Analyzer"));
setDisplayCategory(::Debugger::Tr::tr("Analyzer"));
setCategoryIconPath(Analyzer::Icons::SETTINGSCATEGORY_ANALYZER);
CppcheckOptions options;