aboutsummaryrefslogtreecommitdiff
path: root/src/searchbar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/searchbar.cpp')
-rw-r--r--src/searchbar.cpp26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/searchbar.cpp b/src/searchbar.cpp
deleted file mode 100644
index 4d8ea3a..0000000
--- a/src/searchbar.cpp
+++ /dev/null
@@ -1,26 +0,0 @@
-#include "searchbar.hpp"
-
-#include <QKeyEvent>
-
-SearchBar::SearchBar(QWidget *parent) : QLineEdit(parent)
-{
-
-}
-
-void SearchBar::keyPressEvent(QKeyEvent *event)
-{
- if(event->key() == Qt::Key_Escape) {
- emit this->escapePressed();
- } else {
- QLineEdit::keyPressEvent(event);
- }
-}
-
-void SearchBar::keyReleaseEvent(QKeyEvent *event)
-{
- if(event->key() == Qt::Key_Escape) {
- // Eat the event
- } else {
- QLineEdit::keyReleaseEvent(event);
- }
-}