diff options
author | Francois Ferrand <thetypz@gmail.com> | 2016-03-03 16:11:34 +0100 |
---|---|---|
committer | Francois Ferrand <thetypz@gmail.com> | 2016-03-14 08:23:32 +0000 |
commit | ee1916fc00c82bd7fe4e997a5c3292455cb26986 (patch) | |
tree | 0a1981b53df4d14b3407523abb8002cf4dd1bc88 /src/plugins/autotest/testtreeview.cpp | |
parent | a86dbae28bc3f4efc7ded10e2493d9208f5b2c15 (diff) | |
download | qt-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.cpp | 3 |
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; |