forked from qt-creator/qt-creator
AutoTest: Decouple item and model once more
Change-Id: I301f17dd8be7feb9dc61f483277a4835aea937af Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
This commit is contained in:
@@ -910,5 +910,24 @@ void TestCodeParser::onPartialParsingFinished()
|
||||
}
|
||||
}
|
||||
|
||||
TestTreeItem *QtTestParseResult::createTestTreeItem() const
|
||||
{
|
||||
return itemType == TestTreeItem::Root ? 0 : AutoTestTreeItem::createTestItem(this);
|
||||
}
|
||||
|
||||
TestTreeItem *QuickTestParseResult::createTestTreeItem() const
|
||||
{
|
||||
if (itemType == TestTreeItem::Root || itemType == TestTreeItem::TestDataTag)
|
||||
return 0;
|
||||
return QuickTestTreeItem::createTestItem(this);
|
||||
}
|
||||
|
||||
TestTreeItem *GoogleTestParseResult::createTestTreeItem() const
|
||||
{
|
||||
if (itemType == TestTreeItem::TestCase || itemType == TestTreeItem::TestFunctionOrSet)
|
||||
return GoogleTestTreeItem::createTestItem(this);
|
||||
return 0;
|
||||
}
|
||||
|
||||
} // namespace Internal
|
||||
} // namespace Autotest
|
||||
|
||||
Reference in New Issue
Block a user