Libs: Add *tr.h file

Change-Id: I827d3bc1fd24cf2e3fb6dbe9d255f12cc91cd409
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
hjk
2022-09-01 11:57:29 +02:00
parent 69f55ea991
commit a621aa1d8b
27 changed files with 153 additions and 0 deletions

View File

@@ -2,6 +2,7 @@ add_qtc_library(AdvancedDockingSystem
DEPENDS Qt5::Widgets Qt5::Core Qt5::Gui Utils DEPENDS Qt5::Widgets Qt5::Core Qt5::Gui Utils
SOURCES SOURCES
ads_globals.cpp ads_globals.h ads_globals.cpp ads_globals.h
advanceddockingsystemtr.h
dockareatabbar.cpp dockareatabbar.h dockareatabbar.cpp dockareatabbar.h
dockareatitlebar.cpp dockareatitlebar.h dockareatitlebar.cpp dockareatitlebar.h
dockareawidget.cpp dockareawidget.h dockareawidget.cpp dockareawidget.h

View File

@@ -14,6 +14,7 @@ QtcLibrary {
name: "General" name: "General"
files: [ files: [
"ads_globals.cpp", "ads_globals.h", "ads_globals.cpp", "ads_globals.h",
"advanceddockingsystemtr.h",
"dockareatabbar.cpp", "dockareatabbar.h", "dockareatabbar.cpp", "dockareatabbar.h",
"dockareatitlebar.cpp", "dockareatitlebar.h", "dockareatitlebar.cpp", "dockareatitlebar.h",
"dockareawidget.cpp", "dockareawidget.h", "dockareawidget.cpp", "dockareawidget.h",

View File

@@ -0,0 +1,15 @@
// Copyright (C) 2022 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
#pragma once
#include <QCoreApplication>
namespace AdvancedDockingSystem {
struct Tr
{
Q_DECLARE_TR_FUNCTIONS(AdvancedDockingSystem)
};
} // AdvancedDockingSystem

View File

@@ -3,6 +3,7 @@ add_qtc_library(ExtensionSystem
PUBLIC_DEPENDS Qt5::Core Qt5::Widgets PUBLIC_DEPENDS Qt5::Core Qt5::Widgets
SOURCES SOURCES
extensionsystem_global.h extensionsystem_global.h
extensionsystemtr.h
invoker.cpp invoker.h invoker.cpp invoker.h
iplugin.cpp iplugin.h iplugin_p.h iplugin.cpp iplugin.h iplugin_p.h
optionsparser.cpp optionsparser.h optionsparser.cpp optionsparser.h

View File

@@ -15,6 +15,7 @@ Project {
files: [ files: [
"extensionsystem_global.h", "extensionsystem_global.h",
"extensionsystemtr.h",
"invoker.cpp", "invoker.cpp",
"invoker.h", "invoker.h",
"iplugin.cpp", "iplugin.cpp",

View File

@@ -0,0 +1,15 @@
// Copyright (C) 2022 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
#pragma once
#include <QCoreApplication>
namespace ExtensionSystem {
struct Tr
{
Q_DECLARE_TR_FUNCTIONS(ExtensionSystem)
};
} // ExtensionSystem

View File

@@ -12,6 +12,7 @@ add_qtc_library(LanguageServerProtocol
jsonrpcmessages.cpp jsonrpcmessages.h jsonrpcmessages.cpp jsonrpcmessages.h
languagefeatures.cpp languagefeatures.h languagefeatures.cpp languagefeatures.h
languageserverprotocol_global.h languageserverprotocol_global.h
languageserverprotocoltr.h
lsptypes.cpp lsptypes.h lsptypes.cpp lsptypes.h
lsputils.cpp lsputils.h lsputils.cpp lsputils.h
messages.cpp messages.h messages.cpp messages.h

View File

@@ -28,6 +28,7 @@ Project {
"languagefeatures.cpp", "languagefeatures.cpp",
"languagefeatures.h", "languagefeatures.h",
"languageserverprotocol_global.h", "languageserverprotocol_global.h",
"languageserverprotocoltr.h",
"lsptypes.cpp", "lsptypes.cpp",
"lsptypes.h", "lsptypes.h",
"lsputils.cpp", "lsputils.cpp",

View File

@@ -0,0 +1,15 @@
// Copyright (C) 2022 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
#pragma once
#include <QCoreApplication>
namespace LanguageServerProtocol {
struct Tr
{
Q_DECLARE_TR_FUNCTIONS(LanguageServerProtocol)
};
} // LanguageServerProtocol

View File

@@ -5,6 +5,7 @@ add_qtc_library(Modeling
PUBLIC_INCLUDES PUBLIC_INCLUDES
"${CMAKE_CURRENT_LIST_DIR}" "${CMAKE_CURRENT_LIST_DIR}"
SOURCES SOURCES
modelinglibtr.h
qmt/config/configcontroller.cpp qmt/config/configcontroller.h qmt/config/configcontroller.cpp qmt/config/configcontroller.h
qmt/config/sourcepos.cpp qmt/config/sourcepos.h qmt/config/sourcepos.cpp qmt/config/sourcepos.h
qmt/config/stereotypedefinitionparser.cpp qmt/config/stereotypedefinitionparser.h qmt/config/stereotypedefinitionparser.cpp qmt/config/stereotypedefinitionparser.h

View File

@@ -22,6 +22,7 @@ QtcLibrary {
name: "Qmt" name: "Qmt"
prefix: "./qmt/" prefix: "./qmt/"
files: [ files: [
"modelinglibtr.h",
"config/configcontroller.cpp", "config/configcontroller.cpp",
"config/configcontroller.h", "config/configcontroller.h",
"config/sourcepos.cpp", "config/sourcepos.cpp",

View File

@@ -0,0 +1,15 @@
// Copyright (C) 2022 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
#pragma once
#include <QCoreApplication>
namespace ModelingLib {
struct Tr
{
Q_DECLARE_TR_FUNCTIONS(ModelingLib)
};
} // ModelingLib

View File

@@ -5,6 +5,7 @@ add_qtc_library(QmlDebug
basetoolsclient.cpp basetoolsclient.h basetoolsclient.cpp basetoolsclient.h
qdebugmessageclient.cpp qdebugmessageclient.h qdebugmessageclient.cpp qdebugmessageclient.h
qmldebug_global.h qmldebug_global.h
qmldebugtr.h
qmldebugclient.cpp qmldebugclient.h qmldebugclient.cpp qmldebugclient.h
qmldebugcommandlinearguments.h qmldebugcommandlinearguments.h
qmldebugconnection.cpp qmldebugconnection.h qmldebugconnection.cpp qmldebugconnection.h

View File

@@ -17,6 +17,7 @@ Project {
"qdebugmessageclient.cpp", "qdebugmessageclient.cpp",
"qdebugmessageclient.h", "qdebugmessageclient.h",
"qmldebug_global.h", "qmldebug_global.h",
"qmldebugtr.h",
"qmldebugclient.cpp", "qmldebugclient.cpp",
"qmldebugclient.h", "qmldebugclient.h",
"qmldebugcommandlinearguments.h", "qmldebugcommandlinearguments.h",

View File

@@ -0,0 +1,15 @@
// Copyright (C) 2022 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
#pragma once
#include <QCoreApplication>
namespace QmlDebug {
struct Tr
{
Q_DECLARE_TR_FUNCTIONS(QmlDebug)
};
} // QmlDebug

View File

@@ -18,5 +18,6 @@ add_qtc_library(QmlEditorWidgets
gradientline.cpp gradientline.h gradientline.cpp gradientline.h
huecontrol.cpp huecontrol.h huecontrol.cpp huecontrol.h
qmleditorwidgets_global.h qmleditorwidgets_global.h
qmleditorwidgetstr.h
resources_qmleditorwidgets.qrc resources_qmleditorwidgets.qrc
) )

View File

@@ -29,6 +29,7 @@ QtcLibrary {
"gradientline.cpp", "gradientline.h", "gradientline.cpp", "gradientline.h",
"huecontrol.cpp", "huecontrol.h", "huecontrol.cpp", "huecontrol.h",
"qmleditorwidgets_global.h", "qmleditorwidgets_global.h",
"qmleditorwidgetstr.h",
"resources_qmleditorwidgets.qrc" "resources_qmleditorwidgets.qrc"
] ]
} }

View File

@@ -0,0 +1,15 @@
// Copyright (C) 2022 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
#pragma once
#include <QCoreApplication>
namespace QmlEditorWidgets {
struct Tr
{
Q_DECLARE_TR_FUNCTIONS(QmlEditorWidgets)
};
} // QmlEditorWidgets

View File

@@ -19,6 +19,7 @@ add_qtc_library(QmlJS
parser/qmljssourcelocation_p.h parser/qmljssourcelocation_p.h
persistenttrie.cpp persistenttrie.h persistenttrie.cpp persistenttrie.h
qmljs_global.h qmljs_global.h
qmljstr.h
qmljsbind.cpp qmljsbind.h qmljsbind.cpp qmljsbind.h
qmljsbundle.cpp qmljsbundle.h qmljsbundle.cpp qmljsbundle.h
qmljscheck.cpp qmljscheck.h qmljscheck.cpp qmljscheck.h

View File

@@ -48,6 +48,7 @@ Project {
"qmljsscopechain.cpp", "qmljsscopechain.h", "qmljsscopechain.cpp", "qmljsscopechain.h",
"qmljssimplereader.cpp", "qmljssimplereader.h", "qmljssimplereader.cpp", "qmljssimplereader.h",
"qmljsstaticanalysismessage.cpp", "qmljsstaticanalysismessage.h", "qmljsstaticanalysismessage.cpp", "qmljsstaticanalysismessage.h",
"qmljstr.h",
"qmljstypedescriptionreader.cpp", "qmljstypedescriptionreader.h", "qmljstypedescriptionreader.cpp", "qmljstypedescriptionreader.h",
"qmljsutils.cpp", "qmljsutils.h", "qmljsutils.cpp", "qmljsutils.h",
"qmljsvalueowner.cpp", "qmljsvalueowner.h", "qmljsvalueowner.cpp", "qmljsvalueowner.h",

15
src/libs/qmljs/qmljstr.h Normal file
View File

@@ -0,0 +1,15 @@
// Copyright (C) 2022 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
#pragma once
#include <QCoreApplication>
namespace QmlJS {
struct Tr
{
Q_DECLARE_TR_FUNCTIONS(QmlJS)
};
} // QmlJS

View File

@@ -30,6 +30,7 @@ set(TRACING_CPP_SOURCES
traceeventtype.h traceeventtype.h
tracestashfile.h tracestashfile.h
tracing_global.h tracing_global.h
tracingtr.h
) )
find_package(Qt6 COMPONENTS ShaderTools QUIET) find_package(Qt6 COMPONENTS ShaderTools QUIET)

View File

@@ -36,6 +36,7 @@ Project {
"timelinetracemanager.cpp", "timelinetracemanager.h", "timelinetracemanager.cpp", "timelinetracemanager.h",
"timelinezoomcontrol.cpp", "timelinezoomcontrol.h", "timelinezoomcontrol.cpp", "timelinezoomcontrol.h",
"traceevent.h", "traceeventtype.h", "tracestashfile.h" "traceevent.h", "traceeventtype.h", "tracestashfile.h"
"tracingtr.h",
] ]
} }

View File

@@ -0,0 +1,15 @@
// Copyright (C) 2022 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
#pragma once
#include <QCoreApplication>
namespace Tracing {
struct Tr
{
Q_DECLARE_TR_FUNCTIONS(Tracing)
};
} // Tracing

View File

@@ -177,6 +177,7 @@ add_qtc_library(Utils
url.cpp url.h url.cpp url.h
utils.qrc utils.qrc
utils_global.h utils_global.h
utilstr.h
utilsicons.cpp utilsicons.h utilsicons.cpp utilsicons.h
variablechooser.cpp variablechooser.h variablechooser.cpp variablechooser.h
winutils.cpp winutils.h winutils.cpp winutils.h

View File

@@ -325,6 +325,7 @@ Project {
"utils_global.h", "utils_global.h",
"utilsicons.h", "utilsicons.h",
"utilsicons.cpp", "utilsicons.cpp",
"utilstr.h",
"variablechooser.cpp", "variablechooser.cpp",
"variablechooser.h", "variablechooser.h",
"winutils.cpp", "winutils.cpp",

15
src/libs/utils/utilstr.h Normal file
View File

@@ -0,0 +1,15 @@
// Copyright (C) 2022 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
#pragma once
#include <QCoreApplication>
namespace Utils {
struct Tr
{
Q_DECLARE_TR_FUNCTIONS(Utils)
};
} // Utils