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

Method metaData

core/objectenummodel.cpp:64–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64QVariant ObjectEnumModel::metaData(const QModelIndex &index, const QMetaEnum &enumerator,
65 int role) const
66{
67 if (role == Qt::DisplayRole) {
68 if (index.column() == 0)
69 return QString::fromLatin1(enumerator.name());
70 if (index.column() == 1)
71 return tr("%n element(s)", "", enumerator.keyCount());
72 }
73 return QVariant();
74}
75
76QString ObjectEnumModel::columnHeader(int index) const
77{

Callers 2

PluginInfoMethod · 0.45
initFromJSONMethod · 0.45

Calls 3

columnMethod · 0.80
QVariantClass · 0.70
nameMethod · 0.45

Tested by

no test coverage detected