From ee1916fc00c82bd7fe4e997a5c3292455cb26986 Mon Sep 17 00:00:00 2001 From: Francois Ferrand Date: Thu, 3 Mar 2016 16:11:34 +0100 Subject: [PATCH] Autotest: remove count from changeCheckStateAll Change-Id: I8fa55291ba505f34236c0a36ce8d9e17db8997c8 Reviewed-by: Christian Stenger --- src/plugins/autotest/testtreeview.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/plugins/autotest/testtreeview.cpp b/src/plugins/autotest/testtreeview.cpp index b6c8541450a..7caee61d6a4 100644 --- a/src/plugins/autotest/testtreeview.cpp +++ b/src/plugins/autotest/testtreeview.cpp @@ -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;