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

Method createHighlighting

plugins/quickopen/quickopenwidget.cpp:37–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35 {
36 }
37 QVector<QTextLayout::FormatRange> createHighlighting(const QModelIndex& index, QStyleOptionViewItem& option) const override
38 {
39 QList<QVariant> highlighting = index.data(KTextEditor::CodeCompletionModel::CustomHighlight).toList();
40 if (!highlighting.isEmpty()) {
41 return highlightingFromVariantList(highlighting);
42 }
43 return ExpandingDelegate::createHighlighting(index, option);
44 }
45};
46
47QuickOpenWidget::QuickOpenWidget(QuickOpenModel* model, const QStringList& initialItems, const QStringList& initialScopes, bool listOnly, bool noSearchField)

Callers

nothing calls this directly

Calls 3

toListMethod · 0.45
dataMethod · 0.45
isEmptyMethod · 0.45

Tested by

no test coverage detected