hide popup windows in editor when focus out

This commit is contained in:
royqh1979@gmail.com 2021-10-04 22:10:13 +08:00
parent 77e8eda8a3
commit 2f76aa42a8
1 changed files with 6 additions and 0 deletions

View File

@ -472,6 +472,12 @@ void Editor::focusOutEvent(QFocusEvent *event)
this,
&SynEdit::invalidate);
}
if (mHeaderCompletionPopup)
mHeaderCompletionPopup->hide();
if (mCompletionPopup)
mCompletionPopup->hide();
if (pMainWindow->functionTip())
pMainWindow->functionTip()->hide();
//pMainWindow->updateClassBrowserForEditor(nullptr);
pMainWindow->updateEditorActions();
pMainWindow->updateStatusbarForLineCol();