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

Method data

ui/editabletypesmodel.cpp:34–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34QVariant EditableTypesModel::data(const QModelIndex &index, int role) const
35{
36 if (!index.isValid())
37 return QVariant();
38
39 const int type = m_types.at(index.row());
40 if (role == Qt::DisplayRole)
41 return QMetaType(type).name();
42 else if (role == Qt::UserRole)
43 return type;
44
45 return QVariant();
46}

Callers

nothing calls this directly

Calls 4

rowMethod · 0.80
QVariantClass · 0.50
isValidMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected