diff options
author | Alessandro Portale <alessandro.portale@qt.io> | 2023-02-09 11:43:49 +0100 |
---|---|---|
committer | Alessandro Portale <alessandro.portale@qt.io> | 2023-02-10 16:27:37 +0000 |
commit | 226799858c8a0da51f7f0b99b83308c60f30a288 (patch) | |
tree | 8fce92dd1e5db5b024a55c656cd1a8ca17ee2f61 /src/plugins/cppcheck/cppcheckoptions.cpp | |
parent | 14280acfd956264d15a92c2976d65e5813836d32 (diff) | |
download | qt-creator-226799858c8a0da51f7f0b99b83308c60f30a288.tar.gz |
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>
Diffstat (limited to 'src/plugins/cppcheck/cppcheckoptions.cpp')
-rw-r--r-- | src/plugins/cppcheck/cppcheckoptions.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/cppcheck/cppcheckoptions.cpp b/src/plugins/cppcheck/cppcheckoptions.cpp index 217a8e9063..11563430cc 100644 --- a/src/plugins/cppcheck/cppcheckoptions.cpp +++ b/src/plugins/cppcheck/cppcheckoptions.cpp @@ -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; |