[DolphinSearchBox] Stop search timer on hide

REVIEW: 129705

Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>
This commit is contained in:
Anthony Fieroni 2017-01-01 21:47:10 +02:00
parent 586368dbfc
commit c456c5d528
2 changed files with 8 additions and 0 deletions

View file

@ -206,6 +206,13 @@ void DolphinSearchBox::showEvent(QShowEvent* event)
}
}
void DolphinSearchBox::hideEvent(QHideEvent* event)
{
Q_UNUSED(event);
m_startedSearching = false;
m_startSearchTimer->stop();
}
void DolphinSearchBox::keyReleaseEvent(QKeyEvent* event)
{
QWidget::keyReleaseEvent(event);

View file

@ -100,6 +100,7 @@ public:
protected:
virtual bool event(QEvent* event) Q_DECL_OVERRIDE;
virtual void showEvent(QShowEvent* event) Q_DECL_OVERRIDE;
virtual void hideEvent(QHideEvent* event) Q_DECL_OVERRIDE;
virtual void keyReleaseEvent(QKeyEvent* event) Q_DECL_OVERRIDE;
virtual bool eventFilter(QObject* obj, QEvent* event) Q_DECL_OVERRIDE;