tests/auto/qitemmodel/tst_qitemmodel.cpp
changeset 30 5dc02b23752f
parent 18 2f34d5167611
equal deleted inserted replaced
29:b72c6db6890b 30:5dc02b23752f
   450             QVERIFY(index.model() == currentModel);
   450             QVERIFY(index.model() == currentModel);
   451             QCOMPARE(index.row(), r);
   451             QCOMPARE(index.row(), r);
   452             QCOMPARE(index.column(), c);
   452             QCOMPARE(index.column(), c);
   453             QCOMPARE(currentModel->data(index, Qt::DisplayRole).isValid(), true);
   453             QCOMPARE(currentModel->data(index, Qt::DisplayRole).isValid(), true);
   454 
   454 
   455             // If the next test fails here is some somewhat usefull debug you play with.
   455             // If the next test fails here is some somewhat useful debug you play with.
   456             /*
   456             /*
   457             if (currentModel->parent(index) != parent) {
   457             if (currentModel->parent(index) != parent) {
   458                 qDebug() << r << c << currentDepth << currentModel->data(index).toString()
   458                 qDebug() << r << c << currentDepth << currentModel->data(index).toString()
   459                          << currentModel->data(parent).toString();
   459                          << currentModel->data(parent).toString();
   460                 qDebug() << index << parent << currentModel->parent(index);
   460                 qDebug() << index << parent << currentModel->parent(index);