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:
@@ -76,7 +76,7 @@ static QString extractToolchainPrefix(QString *compilerName)
|
||||
|
||||
static QString targetPlatform(const ProjectExplorer::Abi &abi, const ProjectExplorer::Kit *k)
|
||||
{
|
||||
const Core::Id device = ProjectExplorer::DeviceTypeKitInformation::deviceTypeId(k);
|
||||
const Core::Id device = ProjectExplorer::DeviceTypeKitAspect::deviceTypeId(k);
|
||||
switch (abi.os()) {
|
||||
case ProjectExplorer::Abi::WindowsOS:
|
||||
return QLatin1String("windows");
|
||||
@@ -195,7 +195,7 @@ QVariantMap DefaultPropertyProvider::properties(const ProjectExplorer::Kit *k,
|
||||
{
|
||||
QTC_ASSERT(k, return defaultData);
|
||||
QVariantMap data = autoGeneratedProperties(k, defaultData);
|
||||
const QVariantMap customProperties = QbsKitInformation::properties(k);
|
||||
const QVariantMap customProperties = QbsKitAspect::properties(k);
|
||||
for (QVariantMap::ConstIterator it = customProperties.constBegin();
|
||||
it != customProperties.constEnd(); ++it) {
|
||||
data.insert(it.key(), it.value());
|
||||
@@ -222,14 +222,14 @@ QVariantMap DefaultPropertyProvider::autoGeneratedProperties(const ProjectExplor
|
||||
{
|
||||
QVariantMap data = defaultData;
|
||||
|
||||
const QString sysroot = ProjectExplorer::SysRootKitInformation::sysRoot(k).toUserOutput();
|
||||
const QString sysroot = ProjectExplorer::SysRootKitAspect::sysRoot(k).toUserOutput();
|
||||
if (!sysroot.isEmpty())
|
||||
data.insert(QLatin1String(QBS_SYSROOT), sysroot);
|
||||
|
||||
ProjectExplorer::ToolChain *tcC
|
||||
= ProjectExplorer::ToolChainKitInformation::toolChain(k, ProjectExplorer::Constants::C_LANGUAGE_ID);
|
||||
= ProjectExplorer::ToolChainKitAspect::toolChain(k, ProjectExplorer::Constants::C_LANGUAGE_ID);
|
||||
ProjectExplorer::ToolChain *tcCxx
|
||||
= ProjectExplorer::ToolChainKitInformation::toolChain(k, ProjectExplorer::Constants::CXX_LANGUAGE_ID);
|
||||
= ProjectExplorer::ToolChainKitAspect::toolChain(k, ProjectExplorer::Constants::CXX_LANGUAGE_ID);
|
||||
if (!tcC && !tcCxx)
|
||||
return data;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user