forked from qt-creator/qt-creator
Prefix Tr::tr contexts with ::
To make outliers better visible in Linguist Change-Id: Ic35ea2a858b7e3576d9a416fb494fddb616eaaa1 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -9,7 +9,7 @@ namespace ClangCodeModel {
|
||||
|
||||
struct Tr
|
||||
{
|
||||
Q_DECLARE_TR_FUNCTIONS(ClangCodeModel)
|
||||
Q_DECLARE_TR_FUNCTIONS(::ClangCodeModel)
|
||||
};
|
||||
|
||||
} // namespace ClangCodeModel
|
||||
|
||||
@@ -121,7 +121,8 @@ ClangGlobalSymbolFilter::ClangGlobalSymbolFilter(ILocatorFilter *cppFilter,
|
||||
: m_cppFilter(cppFilter), m_lspFilter(lspFilter)
|
||||
{
|
||||
setId(CppEditor::Constants::LOCATOR_FILTER_ID);
|
||||
setDisplayName(CppEditor::Constants::LOCATOR_FILTER_DISPLAY_NAME);
|
||||
setDisplayName(QCoreApplication::translate("::CppEditor",
|
||||
CppEditor::Constants::LOCATOR_FILTER_DISPLAY_NAME));
|
||||
setDefaultShortcutString(":");
|
||||
setDefaultIncludedByDefault(false);
|
||||
}
|
||||
@@ -188,7 +189,8 @@ ClangClassesFilter::ClangClassesFilter()
|
||||
: ClangGlobalSymbolFilter(new CppClassesFilter, new LspClassesFilter)
|
||||
{
|
||||
setId(CppEditor::Constants::CLASSES_FILTER_ID);
|
||||
setDisplayName(CppEditor::Constants::CLASSES_FILTER_DISPLAY_NAME);
|
||||
setDisplayName(QCoreApplication::translate("::CppEditor",
|
||||
CppEditor::Constants::CLASSES_FILTER_DISPLAY_NAME));
|
||||
setDefaultShortcutString("c");
|
||||
setDefaultIncludedByDefault(false);
|
||||
}
|
||||
@@ -197,7 +199,8 @@ ClangFunctionsFilter::ClangFunctionsFilter()
|
||||
: ClangGlobalSymbolFilter(new CppFunctionsFilter, new LspFunctionsFilter)
|
||||
{
|
||||
setId(CppEditor::Constants::FUNCTIONS_FILTER_ID);
|
||||
setDisplayName(CppEditor::Constants::FUNCTIONS_FILTER_DISPLAY_NAME);
|
||||
setDisplayName(QCoreApplication::translate(":CppEditor",
|
||||
CppEditor::Constants::FUNCTIONS_FILTER_DISPLAY_NAME));
|
||||
setDefaultShortcutString("m");
|
||||
setDefaultIncludedByDefault(false);
|
||||
}
|
||||
@@ -253,7 +256,9 @@ public:
|
||||
ClangdCurrentDocumentFilter::ClangdCurrentDocumentFilter() : d(new Private)
|
||||
{
|
||||
setId(CppEditor::Constants::CURRENT_DOCUMENT_FILTER_ID);
|
||||
setDisplayName(CppEditor::Constants::CURRENT_DOCUMENT_FILTER_DISPLAY_NAME);
|
||||
setDisplayName(
|
||||
QCoreApplication::translate("::CppEditor",
|
||||
CppEditor::Constants::CURRENT_DOCUMENT_FILTER_DISPLAY_NAME));
|
||||
setDefaultShortcutString(".");
|
||||
setPriority(High);
|
||||
setDefaultIncludedByDefault(false);
|
||||
|
||||
@@ -11,7 +11,7 @@ class ClangdClient;
|
||||
|
||||
class ClangdMemoryUsageWidget : public QWidget
|
||||
{
|
||||
Q_DECLARE_TR_FUNCTIONS(ClangCodeModel)
|
||||
Q_DECLARE_TR_FUNCTIONS(::ClangCodeModel)
|
||||
public:
|
||||
explicit ClangdMemoryUsageWidget(ClangdClient *client);
|
||||
~ClangdMemoryUsageWidget();
|
||||
|
||||
Reference in New Issue
Block a user