diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2019-05-29 09:45:30 -0400 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2019-05-31 11:54:31 -0400 |
| commit | 4d90e502266dfb886e1d089fb26780d19a38e5a7 (patch) | |
| tree | 625a794ba0aafd3e022f097ef0e9841d3c106927 /src/filterwidget.h | |
| parent | 64604c966aaade7ceb9f5e547dfad8f51372434c (diff) | |
added new filterwidget, will eventually get the operators functionality from the mod/pluging lists
Diffstat (limited to 'src/filterwidget.h')
| -rw-r--r-- | src/filterwidget.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/filterwidget.h b/src/filterwidget.h new file mode 100644 index 00000000..07e216f1 --- /dev/null +++ b/src/filterwidget.h @@ -0,0 +1,27 @@ +#ifndef FILTERWIDGET_H +#define FILTERWIDGET_H + +class FilterWidget +{ +public: + FilterWidget(); + + void set(QLineEdit* edit); + void buddy(QWidget* w); + + void clear(); + +private: + QLineEdit* m_edit; + QToolButton* m_clear; + QWidget* m_buddy; + + void createClear(); + void hookEvents(); + void repositionClearButton(); + + void onTextChanged(); + void onResized(); +}; + +#endif // FILTERWIDGET_H |
