| 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 | |
| 47 | QuickOpenWidget::QuickOpenWidget(QuickOpenModel* model, const QStringList& initialItems, const QStringList& initialScopes, bool listOnly, bool noSearchField) |