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

Method pluginForIndex

kdevplatform/shell/loadedpluginsdialog.cpp:64–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62 }
63
64 KDevelop::IPlugin *pluginForIndex(const QModelIndex& index) const
65 {
66 if (!index.isValid()) return nullptr;
67 if (index.parent().isValid()) return nullptr;
68 if (index.column() != 0) return nullptr;
69 if (index.row() >= m_plugins.count()) return nullptr;
70 return m_plugins[index.row()];
71 }
72
73 QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const override
74 {

Callers 1

infoFunction · 0.80

Calls 5

isValidMethod · 0.45
parentMethod · 0.45
columnMethod · 0.45
rowMethod · 0.45
countMethod · 0.45

Tested by

no test coverage detected