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

Method data

kdevplatform/debugger/util/treemodel.cpp:57–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57QVariant TreeModel::data(const QModelIndex &index, int role) const
58{
59 if (!index.isValid())
60 return QVariant();
61
62 auto *item = static_cast<TreeItem*>(index.internalPointer());
63 if (role == ItemRole)
64 return QVariant::fromValue(item);
65
66 return item->data(index.column(), role);
67}
68
69Qt::ItemFlags TreeModel::flags(const QModelIndex &index) const
70{

Callers

nothing calls this directly

Calls 3

QVariantClass · 0.50
isValidMethod · 0.45
columnMethod · 0.45

Tested by

no test coverage detected