aboutsummaryrefslogtreecommitdiff
path: root/src/widgets/searchbox.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/widgets/searchbox.hpp')
-rw-r--r--src/widgets/searchbox.hpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/widgets/searchbox.hpp b/src/widgets/searchbox.hpp
new file mode 100644
index 0000000..fe589ff
--- /dev/null
+++ b/src/widgets/searchbox.hpp
@@ -0,0 +1,20 @@
+#ifndef SEARCHBOX_HPP
+#define SEARCHBOX_HPP
+
+#include <QLineEdit>
+
+class SearchBox : public QLineEdit
+{
+ Q_OBJECT
+public:
+ explicit SearchBox(QWidget *parent = nullptr);
+
+signals:
+ void searchNext();
+ void searchPrev();
+public:
+ void keyPressEvent(QKeyEvent *event) override;
+ void keyReleaseEvent(QKeyEvent *event) override;
+};
+
+#endif // SEARCHBOX_HPP