diff options
author | vng <viktor.govako@gmail.com> | 2012-01-20 20:21:15 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:31:53 +0300 |
commit | 9826b1b37a9bc99cbf8f9a9fcf57ba1b8a31790f (patch) | |
tree | e188b7d44ec5c544f921c4a361090ee03b11fd4b /qt/search_panel.hpp | |
parent | ab4dccdfdf201260cb152dca03a525646fa1ec81 (diff) |
[search] Fix desktop version.
Diffstat (limited to 'qt/search_panel.hpp')
-rw-r--r-- | qt/search_panel.hpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/qt/search_panel.hpp b/qt/search_panel.hpp index 6f987de2c8..12a7e9a325 100644 --- a/qt/search_panel.hpp +++ b/qt/search_panel.hpp @@ -28,17 +28,18 @@ class SearchPanel : public QWidget QPixmap m_busyIcon; /// Stores current search results + typedef search::Results ResultsT; typedef search::Result ResultT; - vector<ResultT *> m_results; + vector<ResultT> m_results; int volatile m_queryId; Q_OBJECT signals: - void SearchResultSignal(ResultT * result, int queryId); + void SearchResultSignal(ResultsT * result, int queryId); private: - void SearchResultThreadFunc(ResultT const & result, int queryId); + void SearchResultThreadFunc(ResultsT const & result, int queryId); virtual void showEvent(QShowEvent *); virtual void hideEvent(QHideEvent *); @@ -50,7 +51,7 @@ private slots: void OnSearchPanelItemClicked(int row, int column); void OnSearchTextChanged(QString const &); /// Called via signal to support multithreading - void OnSearchResult(ResultT * result, int queryId); + void OnSearchResult(ResultsT * result, int queryId); void OnViewportChanged(); void OnAnimationTimer(); void OnClearButton(); |