21 #ifndef MINISEARCHER_H
22 #define MINISEARCHER_H
24 #include "Utils/Pimpl.h"
25 #include "Gui/Utils/Widgets/WidgetTemplate.h"
49 void sig_tab_pressed();
50 void sig_focus_lost();
53 using QObject::QObject;
56 bool eventFilter(QObject* o, QEvent* e)
override;
68 void sig_text_changed(
const QString&);
69 void sig_find_next_row();
70 void sig_find_prev_row();
77 bool is_initiator(QKeyEvent* event)
const;
78 void init(
const QString& text);
79 bool check_and_init(QKeyEvent* event);
80 QRect calc_geo()
const;
83 void language_changed()
override;
85 void keyPressEvent(QKeyEvent* e)
override;
86 void showEvent(QShowEvent* e)
override;
87 void hideEvent(QHideEvent* e)
override;
88 void focusOutEvent(QFocusEvent* e)
override;
94 void handle_key_press(QKeyEvent* e);
96 QString current_text();
97 void set_number_results(
int results);
104 #endif // MINISEARCHER_H