forked from qt-creator/qt-creator
Autotest: remove count from changeCheckStateAll
Change-Id: I8fa55291ba505f34236c0a36ce8d9e17db8997c8 Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
@@ -76,8 +76,7 @@ void TestTreeView::changeCheckStateAll(const Qt::CheckState checkState)
|
|||||||
{
|
{
|
||||||
const TestTreeModel *model = TestTreeModel::instance();
|
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 < model->rowCount(rootIndex()); ++rootRow) {
|
||||||
for (int rootRow = 0; rootRow < 3; ++rootRow) {
|
|
||||||
QModelIndex currentRootIndex = model->index(rootRow, 0, rootIndex());
|
QModelIndex currentRootIndex = model->index(rootRow, 0, rootIndex());
|
||||||
if (!currentRootIndex.isValid())
|
if (!currentRootIndex.isValid())
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user