AutoTest: Merge settings and tools hierarchies [1/2]

Currently living in the settings files to keep changes small,
will be renamed in a second step.

This allows the settings aspects to be used in their short form
and overall removes some indirections.

Change-Id: I099369b62239aed8192613a04bca958a660c36c7
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2023-07-11 12:40:08 +02:00
parent 345c946255
commit 14e18fc92f
37 changed files with 489 additions and 567 deletions

View File

@@ -1,43 +0,0 @@
// Copyright (C) 2020 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#include "ctesttool.h"
#include "ctesttreeitem.h"
#include "../autotesttr.h"
#include <cmakeprojectmanager/cmakeprojectconstants.h>
#include <projectexplorer/buildsystem.h>
namespace Autotest {
namespace Internal {
Utils::Id CTestTool::buildSystemId() const
{
return Utils::Id(CMakeProjectManager::Constants::CMAKE_PROJECT_ID);
}
ITestTreeItem *CTestTool::createItemFromTestCaseInfo(const ProjectExplorer::TestCaseInfo &tci)
{
CTestTreeItem *item = new CTestTreeItem(this, tci.name, tci.path, TestTreeItem::TestCase);
item->setLine(tci.line);
return item;
}
const char *CTestTool::name() const
{
return "CTest";
}
QString CTestTool::displayName() const
{
return Tr::tr("CTest");
}
ITestTreeItem *CTestTool::createRootNode()
{
return new CTestTreeItem(this, displayName(), {}, ITestTreeItem::Root);
}
} // namespace Internal
} // namespace Autotest