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

Method data

core/toolpluginmodel.cpp:39–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39QVariant ToolPluginModel::data(const QModelIndex &index, int role) const
40{
41 if (!index.isValid())
42 return QVariant();
43
44 const int row = index.row();
45 const int column = index.column();
46 if (role == Qt::DisplayRole) {
47 ToolFactory *factory = m_tools[row];
48 switch (column) {
49 case 0:
50 return factory->id();
51 case 1:
52 return factory->supportedTypesString();
53 }
54 }
55 return QVariant();
56}
57
58QVariant ToolPluginModel::headerData(int section, Qt::Orientation orientation, int role) const
59{

Callers

nothing calls this directly

Calls 6

rowMethod · 0.80
columnMethod · 0.80
supportedTypesStringMethod · 0.80
QVariantClass · 0.70
isValidMethod · 0.45
idMethod · 0.45

Tested by

no test coverage detected