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

Method rowCount

kdevplatform/language/codecompletion/codecompletionmodel.cpp:415–429  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

413}
414
415int CodeCompletionModel::rowCount(const QModelIndex& parent) const
416{
417 if (parent.isValid()) {
418 auto* element = static_cast<CompletionTreeElement*>(parent.internalPointer());
419
420 CompletionTreeNode* node = element->asNode();
421
422 if (!node)
423 return 0;
424
425 return node->children.count();
426 } else {
427 return m_completionItems.count();
428 }
429}
430
431QString CodeCompletionModel::filterString(KTextEditor::View* view, const KTextEditor::Range& range,
432 const KTextEditor::Cursor& position)

Callers 2

templateIndexesMethod · 0.45
descriptionExtractionMethod · 0.45

Calls 3

asNodeMethod · 0.80
isValidMethod · 0.45
countMethod · 0.45

Tested by 1

descriptionExtractionMethod · 0.36