summaryrefslogtreecommitdiff
path: root/src/plugins/autotest/testtreeview.cpp
diff options
context:
space:
mode:
authorFrancois Ferrand <thetypz@gmail.com>2016-03-03 16:11:34 +0100
committerFrancois Ferrand <thetypz@gmail.com>2016-03-14 08:23:32 +0000
commitee1916fc00c82bd7fe4e997a5c3292455cb26986 (patch)
tree0a1981b53df4d14b3407523abb8002cf4dd1bc88 /src/plugins/autotest/testtreeview.cpp
parenta86dbae28bc3f4efc7ded10e2493d9208f5b2c15 (diff)
downloadqt-creator-ee1916fc00c82bd7fe4e997a5c3292455cb26986.tar.gz
Autotest: remove count from changeCheckStateAll
Change-Id: I8fa55291ba505f34236c0a36ce8d9e17db8997c8 Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
Diffstat (limited to 'src/plugins/autotest/testtreeview.cpp')
-rw-r--r--src/plugins/autotest/testtreeview.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/autotest/testtreeview.cpp b/src/plugins/autotest/testtreeview.cpp
index b6c8541450..7caee61d6a 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;