| 25 | using namespace KDevelop; |
| 26 | |
| 27 | void debugItemModel(QAbstractItemModel* m, const QModelIndex& parent=QModelIndex(), int depth=0) |
| 28 | { |
| 29 | Q_ASSERT(m); |
| 30 | qDebug() << QByteArray(depth*2, '-') << m->data(parent).toString(); |
| 31 | for(int i=0; i<m->rowCount(parent); i++) { |
| 32 | debugItemModel(m, m->index(i, 0, parent), depth+1); |
| 33 | } |
| 34 | } |
| 35 | |
| 36 | void TestProjectModel::initTestCase() |
| 37 | { |
nothing calls this directly
no test coverage detected