blob: e03331fdc536dffcab0541a0a1627b81885ac382 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#ifndef SEARCHBAR_HPP
#define SEARCHBAR_HPP
#include <QLineEdit>
class SearchBar : public QLineEdit
{
Q_OBJECT
public:
explicit SearchBar(QWidget *parent = nullptr);
signals:
void escapePressed();
public:
void keyPressEvent(QKeyEvent *event) override;
void keyReleaseEvent(QKeyEvent *event) override;
};
#endif // SEARCHBAR_HPP
|