ProjectExplorer: Don't use object names for KitAspectFactories

Not used. Also the debugger knows the typename and these are
singletons.

Change-Id: I577241876318aa2930bbc36f454846ffa47cb571
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
hjk
2023-08-22 10:45:18 +02:00
parent a7630f999f
commit 6216c0e924
9 changed files with 0 additions and 16 deletions

View File

@@ -218,7 +218,6 @@ private:
CMakeKitAspectFactory::CMakeKitAspectFactory() CMakeKitAspectFactory::CMakeKitAspectFactory()
{ {
setObjectName(QLatin1String("CMakeKitAspect"));
setId(Constants::TOOL_ID); setId(Constants::TOOL_ID);
setDisplayName(Tr::tr("CMake Tool")); setDisplayName(Tr::tr("CMake Tool"));
setDescription(Tr::tr("The CMake Tool to use when building a project with CMake.<br>" setDescription(Tr::tr("The CMake Tool to use when building a project with CMake.<br>"
@@ -568,7 +567,6 @@ static void setGeneratorInfo(Kit *k, const GeneratorInfo &info)
CMakeGeneratorKitAspectFactory::CMakeGeneratorKitAspectFactory() CMakeGeneratorKitAspectFactory::CMakeGeneratorKitAspectFactory()
{ {
setObjectName(QLatin1String("CMakeGeneratorKitAspect"));
setId(GENERATOR_ID); setId(GENERATOR_ID);
setDisplayName(Tr::tr("CMake <a href=\"generator\">generator</a>")); setDisplayName(Tr::tr("CMake <a href=\"generator\">generator</a>"));
setDescription(Tr::tr("CMake generator defines how a project is built when using CMake.<br>" setDescription(Tr::tr("CMake generator defines how a project is built when using CMake.<br>"
@@ -1058,7 +1056,6 @@ private:
CMakeConfigurationKitAspectFactory::CMakeConfigurationKitAspectFactory() CMakeConfigurationKitAspectFactory::CMakeConfigurationKitAspectFactory()
{ {
setObjectName(QLatin1String("CMakeConfigurationKitAspect"));
setId(CONFIGURATION_ID); setId(CONFIGURATION_ID);
setDisplayName(Tr::tr("CMake Configuration")); setDisplayName(Tr::tr("CMake Configuration"));
setDescription(Tr::tr("Default configuration passed to CMake when setting up a project.")); setDescription(Tr::tr("Default configuration passed to CMake when setting up a project."));

View File

@@ -268,7 +268,6 @@ class DebuggerKitAspectFactory : public KitAspectFactory
public: public:
DebuggerKitAspectFactory() DebuggerKitAspectFactory()
{ {
setObjectName("DebuggerKitAspect");
setId(DebuggerKitAspect::id()); setId(DebuggerKitAspect::id());
setDisplayName(Tr::tr("Debugger")); setDisplayName(Tr::tr("Debugger"));
setDescription(Tr::tr("The debugger to use for this kit.")); setDescription(Tr::tr("The debugger to use for this kit."));

View File

@@ -63,7 +63,6 @@ class McuDependenciesKitAspectFactory final : public KitAspectFactory
public: public:
McuDependenciesKitAspectFactory() McuDependenciesKitAspectFactory()
{ {
setObjectName(QLatin1String("McuDependenciesKitAspect"));
setId(McuDependenciesKitAspect::id()); setId(McuDependenciesKitAspect::id());
setDisplayName(Tr::tr("MCU Dependencies")); setDisplayName(Tr::tr("MCU Dependencies"));
setDescription(Tr::tr("Paths to 3rd party dependencies")); setDescription(Tr::tr("Paths to 3rd party dependencies"));

View File

@@ -33,7 +33,6 @@ class MesonToolKitAspectFactory final : public KitAspectFactory
public: public:
MesonToolKitAspectFactory() MesonToolKitAspectFactory()
{ {
setObjectName(QLatin1String("MesonKitAspect"));
setId(TOOL_ID); setId(TOOL_ID);
setDisplayName(Tr::tr("Meson Tool")); setDisplayName(Tr::tr("Meson Tool"));
setDescription(Tr::tr("The Meson tool to use when building a project with Meson.<br>" setDescription(Tr::tr("The Meson tool to use when building a project with Meson.<br>"

View File

@@ -33,7 +33,6 @@ class NinjaToolKitAspectFactory final : public ProjectExplorer::KitAspectFactory
public: public:
NinjaToolKitAspectFactory() NinjaToolKitAspectFactory()
{ {
setObjectName(QLatin1String("NinjaKitAspect"));
setId(TOOL_ID); setId(TOOL_ID);
setDisplayName(Tr::tr("Ninja Tool")); setDisplayName(Tr::tr("Ninja Tool"));
setDescription(Tr::tr("The Ninja tool to use when building a project with Meson.<br>" setDescription(Tr::tr("The Ninja tool to use when building a project with Meson.<br>"

View File

@@ -100,7 +100,6 @@ public:
SysRootKitAspectFactory::SysRootKitAspectFactory() SysRootKitAspectFactory::SysRootKitAspectFactory()
{ {
setObjectName(QLatin1String("SysRootInformation"));
setId(SysRootKitAspect::id()); setId(SysRootKitAspect::id());
setDisplayName(Tr::tr("Sysroot")); setDisplayName(Tr::tr("Sysroot"));
setDescription(Tr::tr("The root directory of the system image to use.<br>" setDescription(Tr::tr("The root directory of the system image to use.<br>"
@@ -357,7 +356,6 @@ private:
ToolChainKitAspectFactory::ToolChainKitAspectFactory() ToolChainKitAspectFactory::ToolChainKitAspectFactory()
{ {
setObjectName(QLatin1String("ToolChainInformation"));
setId(ToolChainKitAspect::id()); setId(ToolChainKitAspect::id());
setDisplayName(Tr::tr("Compiler")); setDisplayName(Tr::tr("Compiler"));
setDescription(Tr::tr("The compiler to use for building.<br>" setDescription(Tr::tr("The compiler to use for building.<br>"
@@ -859,7 +857,6 @@ public:
DeviceTypeKitAspectFactory::DeviceTypeKitAspectFactory() DeviceTypeKitAspectFactory::DeviceTypeKitAspectFactory()
{ {
setObjectName(QLatin1String("DeviceTypeInformation"));
setId(DeviceTypeKitAspect::id()); setId(DeviceTypeKitAspect::id());
setDisplayName(Tr::tr("Run device type")); setDisplayName(Tr::tr("Run device type"));
setDescription(Tr::tr("The type of device to run applications on.")); setDescription(Tr::tr("The type of device to run applications on."));
@@ -1032,7 +1029,6 @@ private:
DeviceKitAspectFactory::DeviceKitAspectFactory() DeviceKitAspectFactory::DeviceKitAspectFactory()
{ {
setObjectName(QLatin1String("DeviceInformation"));
setId(DeviceKitAspect::id()); setId(DeviceKitAspect::id());
setDisplayName(Tr::tr("Run device")); setDisplayName(Tr::tr("Run device"));
setDescription(Tr::tr("The device to run the applications on.")); setDescription(Tr::tr("The device to run the applications on."));
@@ -1320,7 +1316,6 @@ private:
BuildDeviceKitAspectFactory::BuildDeviceKitAspectFactory() BuildDeviceKitAspectFactory::BuildDeviceKitAspectFactory()
{ {
setObjectName("BuildDeviceInformation");
setId(BuildDeviceKitAspect::id()); setId(BuildDeviceKitAspect::id());
setDisplayName(Tr::tr("Build device")); setDisplayName(Tr::tr("Build device"));
setDescription(Tr::tr("The device used to build applications on.")); setDescription(Tr::tr("The device used to build applications on."));
@@ -1606,7 +1601,6 @@ public:
EnvironmentKitAspectFactory::EnvironmentKitAspectFactory() EnvironmentKitAspectFactory::EnvironmentKitAspectFactory()
{ {
setObjectName(QLatin1String("EnvironmentKitAspect"));
setId(EnvironmentKitAspect::id()); setId(EnvironmentKitAspect::id());
setDisplayName(Tr::tr("Environment")); setDisplayName(Tr::tr("Environment"));
setDescription(Tr::tr("Additional build environment settings when using this kit.")); setDescription(Tr::tr("Additional build environment settings when using this kit."));

View File

@@ -88,7 +88,6 @@ class QbsKitAspectFactory final : public KitAspectFactory
public: public:
QbsKitAspectFactory() QbsKitAspectFactory()
{ {
setObjectName(QLatin1String("QbsKitAspect"));
setId(QbsKitAspect::id()); setId(QbsKitAspect::id());
setDisplayName(Tr::tr("Additional Qbs Profile Settings")); setDisplayName(Tr::tr("Additional Qbs Profile Settings"));
setPriority(22000); setPriority(22000);

View File

@@ -108,7 +108,6 @@ class QmakeKitAspectFactory : public KitAspectFactory
public: public:
QmakeKitAspectFactory() QmakeKitAspectFactory()
{ {
setObjectName(QLatin1String("QmakeKitAspect"));
setId(QmakeKitAspect::id()); setId(QmakeKitAspect::id());
setDisplayName(Tr::tr("Qt mkspec")); setDisplayName(Tr::tr("Qt mkspec"));
setDescription(Tr::tr("The mkspec to use when building the project with qmake.<br>" setDescription(Tr::tr("The mkspec to use when building the project with qmake.<br>"

View File

@@ -166,7 +166,6 @@ const QtKitAspectFactory theQtKitAspectFactory;
QtKitAspectFactory::QtKitAspectFactory() QtKitAspectFactory::QtKitAspectFactory()
{ {
setObjectName(QLatin1String("QtKitAspect"));
setId(QtKitAspect::id()); setId(QtKitAspect::id());
setDisplayName(Tr::tr("Qt version")); setDisplayName(Tr::tr("Qt version"));
setDescription(Tr::tr("The Qt library to use for all projects using this kit.<br>" setDescription(Tr::tr("The Qt library to use for all projects using this kit.<br>"