Enable (De)Select All for gtests as well

Change-Id: Ie9c4c12b57f37ff31aaccf344bd12ea737a14386
Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
This commit is contained in:
Christian Stenger
2015-12-09 13:32:26 +01:00
parent ebfc118c35
commit a88d3df334

View File

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