- fix: hide function tips, when move or resize the main window

This commit is contained in:
Roy Qu 2022-04-11 09:25:22 +08:00
parent fb808f425a
commit b1cc0457ea
3 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,6 @@
Red Panda C++ Version 1.0.4
- fix: hide function tips, when move or resize the main window
Red Panda C++ Version 1.0.3 Red Panda C++ Version 1.0.3
- fix: when oj problem grabbed by competitive companion received, - fix: when oj problem grabbed by competitive companion received,
the app is restored to normal state, no matter it's current state. the app is restored to normal state, no matter it's current state.

View File

@ -1259,6 +1259,11 @@ void Editor::hideEvent(QHideEvent */*event*/)
setHideTime(QDateTime::currentDateTime()); setHideTime(QDateTime::currentDateTime());
} }
void Editor::resizeEvent(QResizeEvent *event)
{
pMainWindow->functionTip()->hide();
}
void Editor::copyToClipboard() void Editor::copyToClipboard()
{ {
if (pSettings->editor().copySizeLimit()) { if (pSettings->editor().copySizeLimit()) {

View File

@ -381,6 +381,10 @@ protected:
protected: protected:
void showEvent(QShowEvent *event) override; void showEvent(QShowEvent *event) override;
void hideEvent(QHideEvent *event) override; void hideEvent(QHideEvent *event) override;
// QWidget interface
protected:
void resizeEvent(QResizeEvent *event) Q_DECL_OVERRIDE;
}; };
QString getWordAtPosition(SynEdit* editor, QString getWordAtPosition(SynEdit* editor,