OSDN Git Service

Ver0.12
[gefu/Gefu.git] / searchbox.h
1 #ifndef SEARCHBOX_H
2 #define SEARCHBOX_H
3
4 #include <QLineEdit>
5
6 class SearchBox : public QLineEdit
7 {
8     Q_OBJECT
9 public:
10     explicit SearchBox(QWidget *parent = 0);
11
12 signals:
13     void searchItem(const QString &text);
14     void searchNext(const QString &text);
15     void searchPrev(const QString &next);
16
17 private slots:
18     void itemFound();
19     void itemNotFound();
20
21 public slots:
22
23     // QWidget interface
24 protected:
25     void keyPressEvent(QKeyEvent *event);
26 };
27
28 #endif // SEARCHBOX_H