| 221 | } |
| 222 | |
| 223 | void ClangCodeCompletionModel::completionInvokedInternal(KTextEditor::View* view, const KTextEditor::Range& range, |
| 224 | CodeCompletionModel::InvocationType /*invocationType*/, const QUrl &url) |
| 225 | { |
| 226 | auto text = view->document()->text({0, 0, range.start().line(), range.start().column()}); |
| 227 | auto followingText = view->document()->text({{range.start().line(), range.start().column()}, view->document()->documentEnd()}); |
| 228 | emit requestCompletion(url, KTextEditor::Cursor(range.start()), text, followingText); |
| 229 | } |
| 230 | |
| 231 | #include "model.moc" |
| 232 | #include "moc_model.cpp" |