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:
@@ -58,7 +58,7 @@ void ClangToolsUnitTests::initTestCase()
|
||||
const QList<Kit *> allKits = KitManager::kits();
|
||||
if (allKits.count() != 1)
|
||||
QSKIP("This test requires exactly one kit to be present");
|
||||
const ToolChain * const toolchain = ToolChainKitInformation::toolChain(allKits.first(),
|
||||
const ToolChain * const toolchain = ToolChainKitAspect::toolChain(allKits.first(),
|
||||
Constants::CXX_LANGUAGE_ID);
|
||||
if (!toolchain)
|
||||
QSKIP("This test requires that there is a kit with a toolchain.");
|
||||
@@ -94,8 +94,8 @@ void ClangToolsUnitTests::testProject()
|
||||
QFETCH(int, expectedDiagCount);
|
||||
if (projectFilePath.contains("mingw")) {
|
||||
const ToolChain * const toolchain
|
||||
= ToolChainKitInformation::toolChain(KitManager::kits().constFirst(),
|
||||
Constants::CXX_LANGUAGE_ID);
|
||||
= ToolChainKitAspect::toolChain(KitManager::kits().constFirst(),
|
||||
Constants::CXX_LANGUAGE_ID);
|
||||
if (toolchain->typeId() != ProjectExplorer::Constants::MINGW_TOOLCHAIN_TYPEID)
|
||||
QSKIP("This test is mingw specific, does not run for other toolchains");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user