Autotest: remove count from changeCheckStateAll

Change-Id: I8fa55291ba505f34236c0a36ce8d9e17db8997c8
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
Francois Ferrand
2016-03-03 16:11:34 +01:00
parent a86dbae28b
commit ee1916fc00

View File

@@ -76,8 +76,7 @@ void TestTreeView::changeCheckStateAll(const Qt::CheckState checkState)
{
const TestTreeModel *model = TestTreeModel::instance();
// 3 == Auto Tests, Quick Tests and Google Tests - must be raised if there will be others
for (int rootRow = 0; rootRow < 3; ++rootRow) {
for (int rootRow = 0; rootRow < model->rowCount(rootIndex()); ++rootRow) {
QModelIndex currentRootIndex = model->index(rootRow, 0, rootIndex());
if (!currentRootIndex.isValid())
return;