aboutsummaryrefslogtreecommitdiff
path: root/src/widgets/searchbar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/widgets/searchbar.cpp')
-rw-r--r--src/widgets/searchbar.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/widgets/searchbar.cpp b/src/widgets/searchbar.cpp
index 90537a1..1347b33 100644
--- a/src/widgets/searchbar.cpp
+++ b/src/widgets/searchbar.cpp
@@ -38,6 +38,15 @@ void SearchBar::focusInEvent(QFocusEvent *event)
// Allows only one "select all" on mouse release
// until next focus event.
this->selectall_flag = (event->reason() == Qt::MouseFocusReason);
+
+ emit this->focused();
+}
+
+void SearchBar::focusOutEvent(QFocusEvent *event)
+{
+ QLineEdit::focusOutEvent(event);
+
+ emit this->blurred();
}
void SearchBar::mouseReleaseEvent(QMouseEvent *event)