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
SOURCES
ads_globals.cpp ads_globals.h
advanceddockingsystemtr.h
dockareatabbar.cpp dockareatabbar.h
dockareatitlebar.cpp dockareatitlebar.h
dockareawidget.cpp dockareawidget.h

View File

@@ -14,6 +14,7 @@ QtcLibrary {
name: "General"
files: [
"ads_globals.cpp", "ads_globals.h",
"advanceddockingsystemtr.h",
"dockareatabbar.cpp", "dockareatabbar.h",
"dockareatitlebar.cpp", "dockareatitlebar.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
SOURCES
extensionsystem_global.h
extensionsystemtr.h
invoker.cpp invoker.h
iplugin.cpp iplugin.h iplugin_p.h
optionsparser.cpp optionsparser.h

View File

@@ -15,6 +15,7 @@ Project {
files: [
"extensionsystem_global.h",
"extensionsystemtr.h",
"invoker.cpp",
"invoker.h",
"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
languagefeatures.cpp languagefeatures.h
languageserverprotocol_global.h
languageserverprotocoltr.h
lsptypes.cpp lsptypes.h
lsputils.cpp lsputils.h
messages.cpp messages.h

View File

@@ -28,6 +28,7 @@ Project {
"languagefeatures.cpp",
"languagefeatures.h",
"languageserverprotocol_global.h",
"languageserverprotocoltr.h",
"lsptypes.cpp",
"lsptypes.h",
"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
"${CMAKE_CURRENT_LIST_DIR}"
SOURCES
modelinglibtr.h
qmt/config/configcontroller.cpp qmt/config/configcontroller.h
qmt/config/sourcepos.cpp qmt/config/sourcepos.h
qmt/config/stereotypedefinitionparser.cpp qmt/config/stereotypedefinitionparser.h

View File

@@ -22,6 +22,7 @@ QtcLibrary {
name: "Qmt"
prefix: "./qmt/"
files: [
"modelinglibtr.h",
"config/configcontroller.cpp",
"config/configcontroller.h",
"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
qdebugmessageclient.cpp qdebugmessageclient.h
qmldebug_global.h
qmldebugtr.h
qmldebugclient.cpp qmldebugclient.h
qmldebugcommandlinearguments.h
qmldebugconnection.cpp qmldebugconnection.h

View File

@@ -17,6 +17,7 @@ Project {
"qdebugmessageclient.cpp",
"qdebugmessageclient.h",
"qmldebug_global.h",
"qmldebugtr.h",
"qmldebugclient.cpp",
"qmldebugclient.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
huecontrol.cpp huecontrol.h
qmleditorwidgets_global.h
qmleditorwidgetstr.h
resources_qmleditorwidgets.qrc
)

View File

@@ -29,6 +29,7 @@ QtcLibrary {
"gradientline.cpp", "gradientline.h",
"huecontrol.cpp", "huecontrol.h",
"qmleditorwidgets_global.h",
"qmleditorwidgetstr.h",
"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
persistenttrie.cpp persistenttrie.h
qmljs_global.h
qmljstr.h
qmljsbind.cpp qmljsbind.h
qmljsbundle.cpp qmljsbundle.h
qmljscheck.cpp qmljscheck.h

View File

@@ -48,6 +48,7 @@ Project {
"qmljsscopechain.cpp", "qmljsscopechain.h",
"qmljssimplereader.cpp", "qmljssimplereader.h",
"qmljsstaticanalysismessage.cpp", "qmljsstaticanalysismessage.h",
"qmljstr.h",
"qmljstypedescriptionreader.cpp", "qmljstypedescriptionreader.h",
"qmljsutils.cpp", "qmljsutils.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
tracestashfile.h
tracing_global.h
tracingtr.h
)
find_package(Qt6 COMPONENTS ShaderTools QUIET)

View File

@@ -36,6 +36,7 @@ Project {
"timelinetracemanager.cpp", "timelinetracemanager.h",
"timelinezoomcontrol.cpp", "timelinezoomcontrol.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
utils.qrc
utils_global.h
utilstr.h
utilsicons.cpp utilsicons.h
variablechooser.cpp variablechooser.h
winutils.cpp winutils.h

View File

@@ -325,6 +325,7 @@ Project {
"utils_global.h",
"utilsicons.h",
"utilsicons.cpp",
"utilstr.h",
"variablechooser.cpp",
"variablechooser.h",
"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