Merge remote-tracking branch 'origin/4.15'

Change-Id: I44dad4bbe9ed955d35c713485720a3f36a21874d
This commit is contained in:
Eike Ziller
2021-04-26 11:59:13 +02:00
131 changed files with 845 additions and 658 deletions

View File

@@ -685,6 +685,8 @@ void Autotest::TestTreeModel::onDataChanged(const QModelIndex &topLeft,
if (!roles.isEmpty() && !roles.contains(Qt::CheckStateRole))
return;
if (!m_checkStateCache) // dataChanged() may be triggered by closing a project
return;
for (int row = topLeft.row(), endRow = bottomRight.row(); row <= endRow; ++row) {
if (auto item = static_cast<ITestTreeItem *>(itemForIndex(index(row, 0, parent))))
m_checkStateCache->insert(item, item->checked());