Commit df062a2df4e9a438b6e876801cbd04a7cab7a569
Add debug output
This test mysteriously fails when run from the autotest system, but
succeeds when run manually. We need more data to find out what is
going on.
Sort-of-reviewed-by: Jesper
| |   |
| 614 | 614 | QTreeView view; |
| 615 | 615 | QPersistentModelIndex index = model.index(path); |
| 616 | 616 | |
| qDebug() << "Path" << path << "count" << model.rowCount(index) << "index" << index; |
|
| 617 | 619 | view.setModel(&model); |
| qDebug() << "After setModel" << index; |
| 618 | 621 | QModelIndex index2 = model.index(path); |
| qDebug() << "A" << index << index2; |
| 619 | 623 | QCOMPARE(index.data(), index2.data()); |
| 620 | 624 | view.setRootIndex(index); |
| 621 | 625 | index2 = model.index(path); |
| qDebug() << "B" << index << index2; |
| 622 | 627 | QCOMPARE(index.data(), index2.data()); |
| 623 | 628 | view.setCurrentIndex(index); |
| 624 | 629 | index2 = model.index(path); |
| qDebug() << "C" << index << index2; |
| 625 | 631 | QCOMPARE(index.data(), index2.data()); |
| 626 | 632 | view.setSortingEnabled(true); |
| 627 | 633 | index2 = model.index(path); |
| qDebug() << "After sorting" << index << index2; |
| 628 | 635 | QCOMPARE(index.data(), index2.data()); |
| 629 | 636 | } |
| 630 | 637 | |