MCPcopy Create free account
hub / github.com/SpartanJ/eepp / resetSuggestions

Method resetSuggestions

src/tools/ecode/plugins/autocomplete/autocompleteplugin.cpp:1458–1472  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1456}
1457
1458void AutoCompletePlugin::resetSuggestions( UICodeEditor* editor ) {
1459 Lock l( mSuggestionsMutex );
1460 mSuggestionIndex = 0;
1461 mSuggestionsStartIndex = 0;
1462 {
1463 Lock l2( mSuggestionsEditorMutex );
1464 mSuggestionsEditor = nullptr;
1465 }
1466 mSuggestions.clear();
1467 if ( editor && editor->hasFocus() ) {
1468 auto mousePos( editor->getUISceneNode()->getUIEventDispatcher()->getMousePosf() );
1469 if ( editor->getScreenRect().contains( mousePos ) )
1470 editor->updateMouseCursor( mousePos );
1471 }
1472}
1473
1474void AutoCompletePlugin::resetSignatureHelp() {
1475 mSignatureHelpVisible = false;

Callers

nothing calls this directly

Calls 8

getMousePosfMethod · 0.80
getUIEventDispatcherMethod · 0.80
getScreenRectMethod · 0.80
updateMouseCursorMethod · 0.80
clearMethod · 0.45
hasFocusMethod · 0.45
getUISceneNodeMethod · 0.45
containsMethod · 0.45

Tested by

no test coverage detected