forked from qt-creator/qt-creator
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user