ClangFormat: Tr::tr()

Change-Id: Iabbe39bfdd3ae24d65610a00d792e16591a1b6ee
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Alessandro Portale
2023-02-04 01:46:50 +01:00
parent 48affa1889
commit 389b9503d7
8 changed files with 26 additions and 40 deletions

View File

@@ -37,7 +37,6 @@ namespace ClangFormat {
class ClangFormatStyleFactory : public CppCodeStylePreferencesFactory
{
Q_DECLARE_TR_FUNCTIONS(ClangFormatStyleFactory)
public:
Indenter *createIndenter(QTextDocument *doc) const override
{
@@ -47,7 +46,7 @@ public:
std::pair<CppCodeStyleWidget *, QString> additionalTab(
ICodeStylePreferences *codeStyle, Project *project, QWidget *parent) const override
{
return {new ClangFormatConfigWidget(codeStyle, project, parent), tr("ClangFormat")};
return {new ClangFormatConfigWidget(codeStyle, project, parent), Tr::tr("ClangFormat")};
}
CodeStyleEditorWidget *createAdditionalGlobalSettings(
@@ -72,7 +71,7 @@ void ClangFormatPlugin::initialize()
ActionContainer *contextMenu = ActionManager::actionContainer(CppEditor::Constants::M_CONTEXT);
if (contextMenu) {
auto openClangFormatConfigAction
= new QAction(tr("Open Used .clang-format Configuration File"), this);
= new QAction(Tr::tr("Open Used .clang-format Configuration File"), this);
Command *command = ActionManager::registerAction(openClangFormatConfigAction,
Constants::OPEN_CURRENT_CONFIG_ID);
contextMenu->addSeparator();