diff options
author | Alex Zolotarev <deathbaba@gmail.com> | 2011-06-05 02:46:06 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:19:03 +0300 |
commit | ba3502f842ba1e9d1f7bc75299a556b12432ba52 (patch) | |
tree | 4f0ab0595744c13b5c0df9ba15a18798ade15b04 /qt/search_panel.hpp | |
parent | 99d2c20d49cfe3222f673de35ab8d2271930b38b (diff) |
Closed #282 - refresh search results when viewport is changed
Diffstat (limited to 'qt/search_panel.hpp')
-rw-r--r-- | qt/search_panel.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/qt/search_panel.hpp b/qt/search_panel.hpp index b8107885f0..3540a17eeb 100644 --- a/qt/search_panel.hpp +++ b/qt/search_panel.hpp @@ -31,6 +31,8 @@ signals: private: void SearchResultThreadFunc(search::Result const & result, int queryId); + virtual void showEvent(QShowEvent *); + virtual void hideEvent(QHideEvent *); public: explicit SearchPanel(DrawWidget * drawWidget, QWidget * parent); @@ -41,6 +43,7 @@ protected slots: void OnSearchTextChanged(QString const &); /// Called via signal to support multithreading void OnSearchResult(search::Result * result, int queryId); + void OnViewportChanged(); }; } |