Changeset View
Changeset View
Standalone View
Standalone View
src/completion/katecompletionwidget.cpp
Show First 20 Lines • Show All 369 Lines • ▼ Show 20 Line(s) | 336 | { | |||
---|---|---|---|---|---|
370 | } | 370 | } | ||
371 | 371 | | |||
372 | m_presentationModel->clearCompletionModels(); | 372 | m_presentationModel->clearCompletionModels(); | ||
373 | 373 | | |||
374 | if (invocationType == KTextEditor::CodeCompletionModel::UserInvocation) { | 374 | if (invocationType == KTextEditor::CodeCompletionModel::UserInvocation) { | ||
375 | deleteCompletionRanges(); | 375 | deleteCompletionRanges(); | ||
376 | } | 376 | } | ||
377 | 377 | | |||
378 | foreach (KTextEditor::CodeCompletionModel *model, models) { | 378 | for (KTextEditor::CodeCompletionModel *model : qAsConst(models)) { | ||
379 | KTextEditor::Range range; | 379 | KTextEditor::Range range; | ||
380 | if (word.isValid()) { | 380 | if (word.isValid()) { | ||
381 | range = word; | 381 | range = word; | ||
382 | //qCDebug(LOG_KTE)<<"word is used"; | 382 | //qCDebug(LOG_KTE)<<"word is used"; | ||
383 | } else { | 383 | } else { | ||
384 | range = _completionRange(model, view(), view()->cursorPosition()); | 384 | range = _completionRange(model, view(), view()->cursorPosition()); | ||
385 | //qCDebug(LOG_KTE)<<"completionRange has been called, cursor pos is"<<view()->cursorPosition(); | 385 | //qCDebug(LOG_KTE)<<"completionRange has been called, cursor pos is"<<view()->cursorPosition(); | ||
386 | } | 386 | } | ||
▲ Show 20 Lines • Show All 1101 Lines • Show Last 20 Lines |