From 2f76aa42a800b882462c7a4278c038497e93bcb0 Mon Sep 17 00:00:00 2001 From: "royqh1979@gmail.com" Date: Mon, 4 Oct 2021 22:10:13 +0800 Subject: [PATCH] hide popup windows in editor when focus out --- RedPandaIDE/editor.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/RedPandaIDE/editor.cpp b/RedPandaIDE/editor.cpp index 86b3652c..12f8e764 100644 --- a/RedPandaIDE/editor.cpp +++ b/RedPandaIDE/editor.cpp @@ -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();