MCPcopy Create free account
hub / github.com/KDAB/GammaRay / data

Method data

plugins/modelinspector/modelmodel.cpp:24–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22}
23
24QVariant ModelModel::data(const QModelIndex &index, int role) const
25{
26 if (!index.isValid())
27 return QVariant();
28
29 QAbstractItemModel *model = static_cast<QAbstractItemModel *>(index.internalPointer());
30 if (!model)
31 return QVariant();
32 return dataForObject(model, index, role);
33}
34
35int ModelModel::rowCount(const QModelIndex &parent) const
36{

Callers 5

paintMethod · 0.45
modelContextMenuMethod · 0.45
modelSelectedMethod · 0.45

Calls 2

QVariantClass · 0.50
isValidMethod · 0.45

Tested by 4

modelContextMenuMethod · 0.36
modelSelectedMethod · 0.36