AutoTest: Redo results filtering

Instead of performing costly computations keep
track of the currently present types in the
respective branch of the subtree.
This also makes the filter invalidation on
newly added items obsolete.

Fixes: QTCREATORBUG-28831
Change-Id: I12cd31dc95b4c310a04ced2c98de3d509032482c
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Christian Stenger
2023-02-28 09:15:40 +01:00
parent ca030b5a9a
commit 369753acbc
3 changed files with 35 additions and 30 deletions

View File

@@ -107,6 +107,7 @@ TestResultsPane::TestResultsPane(QObject *parent) :
m_model = new TestResultModel(this);
m_filterModel = new TestResultFilterModel(m_model, this);
m_filterModel->setDynamicSortFilter(true);
m_filterModel->setRecursiveFilteringEnabled(true);
m_treeView->setModel(m_filterModel);
TestResultDelegate *trd = new TestResultDelegate(this);
m_treeView->setItemDelegate(trd);