aboutsummaryrefslogtreecommitdiff
path: root/src/searchbar.cpp
diff options
context:
space:
mode:
authorFelix (xq) Queißner <git@mq32.de>2020-06-22 21:10:04 +0200
committerFelix (xq) Queißner <git@mq32.de>2020-06-22 21:10:04 +0200
commit75ec461eeaa851cb5c53f4cfffc434e3e529ed1d (patch)
tree3944737340718ca3675381aa06636045d397e780 /src/searchbar.cpp
parent8dbfb0890560fd1cd698d06fa05ac868c4db8576 (diff)
downloadkristall-75ec461eeaa851cb5c53f4cfffc434e3e529ed1d.tar.gz
Restructures the project source and cleans up a bit
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);
- }
-}