forked from qt-creator/qt-creator
AutoTest: Fix checked state for QtTest
Data functions and special functions may get handled as normal test functions which obviously fails when executing tests. Change-Id: I630fedcdbcc7577c1896f8cccbe77008a623900f Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -85,6 +85,13 @@ Qt::ItemFlags QtTestTreeItem::flags(int column) const
|
||||
|
||||
Qt::CheckState QtTestTreeItem::checked() const
|
||||
{
|
||||
switch (type()) {
|
||||
case TestDataFunction:
|
||||
case TestSpecialFunction:
|
||||
return Qt::Unchecked;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return m_multiTest ? Qt::Unchecked : TestTreeItem::checked();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user