diff options
author | Alex Zolotarev <deathbaba@gmail.com> | 2011-06-06 06:20:10 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:19:15 +0300 |
commit | 6eb1705e08c6b1c9affe86e5ec5117650469bf13 (patch) | |
tree | c7e03af9af39f0065aea53740899b33e394b16fd /qt/search_panel.hpp | |
parent | dd93eaae8ff1e70036004057b9ddc88301d5a5bd (diff) |
[qt] Added search active indicator and clear text button
Diffstat (limited to 'qt/search_panel.hpp')
-rw-r--r-- | qt/search_panel.hpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/qt/search_panel.hpp b/qt/search_panel.hpp index 3540a17eeb..068eb1c7e9 100644 --- a/qt/search_panel.hpp +++ b/qt/search_panel.hpp @@ -8,6 +8,8 @@ class QTableWidget; class QLineEdit; +class QPushButton; +class QTimer; namespace qt { @@ -19,6 +21,8 @@ class SearchPanel : public QWidget DrawWidget * m_pDrawWidget; QTableWidget * m_pTable; QLineEdit * m_pEditor; + QPushButton * m_pClearButton; + QTimer * m_pAnimationTimer; /// Stores current search results vector<search::Result *> m_results; @@ -38,12 +42,14 @@ public: explicit SearchPanel(DrawWidget * drawWidget, QWidget * parent); ~SearchPanel(); -protected slots: +private slots: void OnSearchPanelItemClicked(int row, int column); void OnSearchTextChanged(QString const &); /// Called via signal to support multithreading void OnSearchResult(search::Result * result, int queryId); void OnViewportChanged(); + void OnAnimationTimer(); + void OnClearButton(); }; } |