21 #ifndef MINISEARCHER_H 22 #define MINISEARCHER_H 26 #include <QAbstractItemView> 28 #include "Helper/Pimpl.h" 30 enum class MiniSearcherButtons : quint8
43 void sig_tab_pressed();
44 void sig_esc_pressed();
45 void sig_le_focus_lost();
51 void focusOutEvent(QFocusEvent* e)
override;
63 void sig_text_changed(
const QString&);
64 void sig_find_next_row();
65 void sig_find_prev_row();
69 void line_edit_text_changed(
const QString&);
70 void line_edit_focus_lost();
76 bool is_initiator(QKeyEvent* event)
const;
77 void init(QString text);
78 void init_layout(MiniSearcherButtons b);
82 MiniSearcher(QAbstractItemView* parent, MiniSearcherButtons b=MiniSearcherButtons::NoButton);
85 bool check_and_init(QKeyEvent* event);
87 QString get_current_text();
89 void keyPressEvent(QKeyEvent *e)
override;
90 void showEvent(QShowEvent* e)
override;
91 void hideEvent(QHideEvent *e)
override;
92 void focusOutEvent(QFocusEvent* e)
override;
99 #endif // MINISEARCHER_H Definition: MiniSearcher.h:55
Definition: MiniSearcher.h:38
Definition: org_mpris_media_player2_adaptor.h:21