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

Method itemForIndex

plugins/externalscript/externalscriptview.cpp:79–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79ExternalScriptItem* ExternalScriptView::itemForIndex(const QModelIndex& index) const
80{
81 if (!index.isValid()) {
82 return nullptr;
83 }
84
85 const QModelIndex mappedIndex = m_model->mapToSource(index);
86 return static_cast<ExternalScriptItem*>(m_plugin->model()->itemFromIndex(mappedIndex));
87}
88
89void ExternalScriptView::validateActions()
90{

Callers 6

initMethod · 0.45
verifyVariableMethod · 0.45
variableChildAtMethod · 0.45
watchVariableAtMethod · 0.45
testVariablesChangedMethod · 0.45

Calls 4

isValidMethod · 0.45
mapToSourceMethod · 0.45
itemFromIndexMethod · 0.45
modelMethod · 0.45

Tested by 6

initMethod · 0.36
verifyVariableMethod · 0.36
variableChildAtMethod · 0.36
watchVariableAtMethod · 0.36
testVariablesChangedMethod · 0.36