forked from qt-creator/qt-creator
ProjectExplorer: Rename KitInformation to KitAspect
The name "KitInformation" does not properly convey the fact that it represents a certain *aspect* of a kit. The same goes for "KitConfigWidget", which in addition was inconsistent with "KitInformation". We now use "KitAspect" and "KitAspectWidget". Change-Id: I9804ee4cedc4d61fad533ea1dd4e4720e67fde97 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -307,7 +307,7 @@ void BuildConfiguration::prependCompilerPathToEnvironment(Utils::Environment &en
|
||||
void BuildConfiguration::prependCompilerPathToEnvironment(Kit *k, Utils::Environment &env)
|
||||
{
|
||||
const ToolChain *tc
|
||||
= ToolChainKitInformation::toolChain(k, ProjectExplorer::Constants::CXX_LANGUAGE_ID);
|
||||
= ToolChainKitAspect::toolChain(k, ProjectExplorer::Constants::CXX_LANGUAGE_ID);
|
||||
|
||||
if (!tc)
|
||||
return;
|
||||
@@ -363,7 +363,7 @@ bool BuildConfigurationFactory::supportsTargetDeviceType(Core::Id id) const
|
||||
BuildConfigurationFactory *BuildConfigurationFactory::find(const Kit *k, const QString &projectPath)
|
||||
{
|
||||
QTC_ASSERT(k, return nullptr);
|
||||
const Core::Id deviceType = DeviceTypeKitInformation::deviceTypeId(k);
|
||||
const Core::Id deviceType = DeviceTypeKitAspect::deviceTypeId(k);
|
||||
for (BuildConfigurationFactory *factory : g_buildConfigurationFactories) {
|
||||
if (Utils::mimeTypeForFile(projectPath).matchesName(factory->m_supportedProjectMimeTypeName)
|
||||
&& factory->supportsTargetDeviceType(deviceType))
|
||||
@@ -405,7 +405,7 @@ bool BuildConfigurationFactory::canHandle(const Target *target) const
|
||||
if (containsType(target->project()->projectIssues(target->kit()), Task::TaskType::Error))
|
||||
return false;
|
||||
|
||||
if (!supportsTargetDeviceType(DeviceTypeKitInformation::deviceTypeId(target->kit())))
|
||||
if (!supportsTargetDeviceType(DeviceTypeKitAspect::deviceTypeId(target->kit())))
|
||||
return false;
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user