diff options
author | Alessandro Portale <alessandro.portale@qt.io> | 2023-01-11 20:43:10 +0100 |
---|---|---|
committer | hjk <hjk@qt.io> | 2023-01-12 06:46:45 +0000 |
commit | f7bcd4f574491211d73752fb953e5af099dcac0c (patch) | |
tree | 03c609df6f91caa84df76049af6eff1d508376be /src/plugins/cppeditor/cppeditordocument.cpp | |
parent | 85d067af916346d50da515d6f636b29b5dd4dc6c (diff) |
CppEditor: Convert to Tr::tr
Change-Id: Ic4025e06e17c45eb6dc2162fb7f21f5b8aebe84d
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Diffstat (limited to 'src/plugins/cppeditor/cppeditordocument.cpp')
-rw-r--r-- | src/plugins/cppeditor/cppeditordocument.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/plugins/cppeditor/cppeditordocument.cpp b/src/plugins/cppeditor/cppeditordocument.cpp index 6156b37cd3..d7039b2c2c 100644 --- a/src/plugins/cppeditor/cppeditordocument.cpp +++ b/src/plugins/cppeditor/cppeditordocument.cpp @@ -7,6 +7,7 @@ #include "cppcodeformatter.h" #include "cppeditorconstants.h" #include "cppeditorplugin.h" +#include "cppeditortr.h" #include "cppmodelmanager.h" #include "cppeditorconstants.h" #include "cppeditorplugin.h" @@ -110,8 +111,8 @@ CppEditorDocument::CppEditorDocument() minimizableInfoBars()->setSettingsGroup(Constants::CPPEDITOR_SETTINGSGROUP); minimizableInfoBars()->setPossibleInfoBarEntries( {{NO_PROJECT_CONFIGURATION, - tr("<b>Warning</b>: This file is not part of any project. " - "The code model might have issues parsing this file properly.")}}); + Tr::tr("<b>Warning</b>: This file is not part of any project. " + "The code model might have issues parsing this file properly.")}}); // See also onFilePathChanged() for more initialization } @@ -343,8 +344,8 @@ void CppEditorDocument::showHideInfoBarAboutMultipleParseContexts(bool show) if (show) { InfoBarEntry info(id, - tr("Note: Multiple parse contexts are available for this file. " - "Choose the preferred one from the editor toolbar."), + Tr::tr("Note: Multiple parse contexts are available for this file. " + "Choose the preferred one from the editor toolbar."), InfoBarEntry::GlobalSuppression::Enabled); info.removeCancelButton(); if (infoBar()->canInfoBeAdded(id)) |