| 680 | } |
| 681 | |
| 682 | void QodeAssistClient::handleAutoRequestTrigger(TextEditor::TextEditorWidget *widget) |
| 683 | { |
| 684 | const QTextCursor cursor = widget->textCursor(); |
| 685 | const auto &settings = Settings::codeCompletionSettings(); |
| 686 | const bool smart = settings.smartContextTrigger(); |
| 687 | |
| 688 | if (smart && (isInsideIdentifier(cursor) || isAfterMemberAccess(cursor))) |
| 689 | return; |
| 690 | |
| 691 | const bool eager = smart && (isFreshIndentedLine(cursor) || isAfterEagerTrigger(cursor)); |
| 692 | const int charThreshold = settings.autoCompletionCharThreshold(); |
| 693 | |
| 694 | if (eager || m_recentCharCount > charThreshold) |
| 695 | scheduleRequest(widget); |
| 696 | } |
| 697 | |
| 698 | bool QodeAssistClient::eventFilter(QObject *watched, QEvent *event) |
| 699 | { |
nothing calls this directly
no test coverage detected