AutoTest: Introduce ITestTreeItem

Preparation for having separated test tree items with a
common base.

Change-Id: I3735f582cc96910e971f5a41c799cc0729a10a58
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Christian Stenger
2020-10-12 14:11:10 +02:00
parent b057ea1ab8
commit 55298cc211
14 changed files with 313 additions and 256 deletions

View File

@@ -286,7 +286,7 @@ TestConfiguration *BoostTestTreeItem::testConfiguration() const
if (itemType == TestSuite || itemType == TestCase) {
QStringList testCases;
if (itemType == TestSuite) {
forFirstLevelChildren([&testCases](TestTreeItem *child) {
forFirstLevelChildItems([&testCases](TestTreeItem *child) {
QTC_ASSERT(child, return);
if (auto boostItem = static_cast<BoostTestTreeItem *>(child)) {
if (boostItem->enabled()) {