TextEditor: Fix is visible check of function hint

Since the FunctionHintProposalWidget is just a proxy witget that uses a
FakeToolTip it is not shown directly so we cannot check the visibility
with isVisible.

Fixes: QTCREATORBUG-25664
Change-Id: I6888e373afcfc79565ce8e3dad1bb05501d58200
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
David Schulz
2021-05-04 11:21:13 +02:00
parent 97744a071a
commit a86da031c7
4 changed files with 11 additions and 2 deletions

View File

@@ -52,6 +52,8 @@ public:
void updateProposal(const QString &prefix) override;
void closeProposal() override;
bool proposalIsVisible() const override;
protected:
bool eventFilter(QObject *o, QEvent *e) override;