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:
hjk
2023-01-13 11:03:09 +01:00
parent eab76c5007
commit e7c536011f
148 changed files with 3625 additions and 3617 deletions

View File

@@ -7,6 +7,7 @@
#include "qmljscodestylesettingspage.h"
#include "qmljsindenter.h"
#include "qmljstoolsconstants.h"
#include "qmljstoolstr.h"
#include <qmljseditor/qmljseditorconstants.h>
@@ -39,7 +40,7 @@ Utils::Id QmlJSCodeStylePreferencesFactory::languageId()
QString QmlJSCodeStylePreferencesFactory::displayName()
{
return QLatin1String(Constants::QML_JS_SETTINGS_NAME);
return Tr::tr("Qt Quick");
}
TextEditor::ICodeStylePreferences *QmlJSCodeStylePreferencesFactory::createCodeStyle() const

View File

@@ -20,7 +20,6 @@ const char QML_JS_CODE_STYLE_SETTINGS_ID[] = "A.Code Style";
const char QML_JS_CODE_STYLE_SETTINGS_NAME[] = QT_TRANSLATE_NOOP("QmlJSTools", "Code Style");
const char QML_JS_SETTINGS_ID[] = "QmlJS";
const char QML_JS_SETTINGS_NAME[] = QT_TRANSLATE_NOOP("QmlJSTools", "Qt Quick");
const char M_TOOLS_QMLJS[] = "QmlJSTools.Tools.Menu";
const char RESET_CODEMODEL[] = "QmlJSTools.ResetCodeModel";

View File

@@ -9,7 +9,7 @@ namespace QmlJSTools {
struct Tr
{
Q_DECLARE_TR_FUNCTIONS(QmlJSTools)
Q_DECLARE_TR_FUNCTIONS(::QmlJSTools)
};
} // namespace QmlJSTools