| 1456 | } |
| 1457 | |
| 1458 | void 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 | |
| 1474 | void AutoCompletePlugin::resetSignatureHelp() { |
| 1475 | mSignatureHelpVisible = false; |
nothing calls this directly
no test coverage detected