diff options
author | Alex Zolotarev <deathbaba@gmail.com> | 2011-06-02 20:10:52 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:18:48 +0300 |
commit | 9fc7593b865036cf8979109919f7615eecf81efa (patch) | |
tree | 56bf4fb9c8e3b25d7ae5f6237702166ec6526b3c /qt/search_panel.hpp | |
parent | d96470fdb6afb9e2b039506f3a7efe3f68b56b8c (diff) |
[qt] Rewrote search panel
Diffstat (limited to 'qt/search_panel.hpp')
-rw-r--r-- | qt/search_panel.hpp | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/qt/search_panel.hpp b/qt/search_panel.hpp new file mode 100644 index 0000000000..7c6a273755 --- /dev/null +++ b/qt/search_panel.hpp @@ -0,0 +1,36 @@ +#pragma once + +#include <QWidget> + +namespace search { class Result; } +class QTableWidget; +class QLineEdit; + +namespace qt +{ + +class DrawWidget; + +class SearchPanel : public QWidget +{ + DrawWidget * m_pDrawWidget; + QTableWidget * m_pTable; + QLineEdit * m_pEditor; + + Q_OBJECT + +private: + void OnSearchResult(search::Result const & result); +protected: + virtual void showEvent(QShowEvent *); + virtual void hideEvent(QHideEvent *); + +public: + explicit SearchPanel(DrawWidget * drawWidget, QWidget * parent); + +protected slots: + void OnSearchPanelItemClicked(int row, int column); + void OnSearchTextChanged(QString const &); +}; + +} |