MCPcopy Create free account
hub / github.com/KDE/kdevelop / debugItemModel

Function debugItemModel

kdevplatform/project/tests/test_projectmodel.cpp:27–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25using namespace KDevelop;
26
27void 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
36void TestProjectModel::initTestCase()
37{

Callers

nothing calls this directly

Calls 6

QModelIndexClass · 0.50
QByteArrayClass · 0.50
toStringMethod · 0.45
dataMethod · 0.45
rowCountMethod · 0.45
indexMethod · 0.45

Tested by

no test coverage detected