forked from qt-creator/qt-creator
AutoTest: Ensure removal of empty items if possible
Change-Id: I2cac91e56e8f22f89f88bbc82cc5f7b526500529 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -348,6 +348,12 @@ bool QuickTestTreeItem::isGroupNodeFor(const TestTreeItem *other) const
|
||||
return TestTreeItem::isGroupNodeFor(other);
|
||||
}
|
||||
|
||||
bool QuickTestTreeItem::removeOnSweepIfEmpty() const
|
||||
{
|
||||
return TestTreeItem::removeOnSweepIfEmpty()
|
||||
|| (type() == TestCase && name().isEmpty()); // remove pseudo item '<unnamed>'
|
||||
}
|
||||
|
||||
TestTreeItem *QuickTestTreeItem::createParentGroupNode() const
|
||||
{
|
||||
if (filePath().isEmpty() || name().isEmpty())
|
||||
|
||||
Reference in New Issue
Block a user