ProjectExplorer: Inline DefaultDeployConfigurationFactory

Change-Id: I03750e35b99ad42945312a3eb586016677a43428
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Jarek Kobus
2023-08-18 13:03:50 +02:00
parent f62575fd5d
commit 00fea961f3
3 changed files with 12 additions and 18 deletions

View File

@@ -245,16 +245,4 @@ void DeployConfigurationFactory::addInitialStep(Utils::Id stepId, const std::fun
m_initialSteps.append({stepId, condition}); m_initialSteps.append({stepId, condition});
} }
///
// DefaultDeployConfigurationFactory
///
DefaultDeployConfigurationFactory::DefaultDeployConfigurationFactory()
{
setConfigBaseId("ProjectExplorer.DefaultDeployConfiguration");
addSupportedTargetDeviceType(Constants::DESKTOP_DEVICE_TYPE);
//: Display name of the default deploy configuration
setDefaultDisplayName(Tr::tr("Deploy Configuration"));
}
} // namespace ProjectExplorer } // namespace ProjectExplorer

View File

@@ -100,10 +100,4 @@ private:
PostRestore m_postRestore; PostRestore m_postRestore;
}; };
class DefaultDeployConfigurationFactory : public DeployConfigurationFactory
{
public:
DefaultDeployConfigurationFactory();
};
} // namespace ProjectExplorer } // namespace ProjectExplorer

View File

@@ -426,6 +426,18 @@ private:
Core::LocatorMatcherTasks matchers() final; Core::LocatorMatcherTasks matchers() final;
}; };
class DefaultDeployConfigurationFactory final : public DeployConfigurationFactory
{
public:
DefaultDeployConfigurationFactory()
{
setConfigBaseId("ProjectExplorer.DefaultDeployConfiguration");
addSupportedTargetDeviceType(Constants::DESKTOP_DEVICE_TYPE);
//: Display name of the default deploy configuration
setDefaultDisplayName(Tr::tr("Deploy Configuration"));
}
};
class ProjectExplorerPluginPrivate : public QObject class ProjectExplorerPluginPrivate : public QObject
{ {
public: public: