| Wireshark 4.7.0 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
field_filter_edit.h
Go to the documentation of this file.
1
10#ifndef FIELDFILTEREDIT_H
11#define FIELDFILTEREDIT_H
12
13#include <ui/qt/widgets/syntax_line_edit.h>
14
15 class QEvent;
16 class StockIconToolButton;
17
18 class FieldFilterEdit : public SyntaxLineEdit
19{
20 Q_OBJECT
21 public:
22 explicit FieldFilterEdit(QWidget *parent = 0);
23
24 protected:
25 void keyPressEvent(QKeyEvent *event) { completionKeyPressEvent(event); }
26 void focusInEvent(QFocusEvent *event) { completionFocusInEvent(event); }
27 void focusOutEvent(QFocusEvent *event);
28
29 public slots:
30 bool checkFilter();
31
32 private slots:
33 void checkFilter(const QString &filter_text);
34 void changeEvent(QEvent* event);
35
36 private:
37 QString placeholder_text_;
38
39 void setDefaultPlaceholderText();
40 void buildCompletionList(const QString &field_word, const QString &preamble);
41
42signals:
43 void pushFilterSyntaxStatus(const QString&);
44 void popFilterSyntaxStatus();
45 void pushFilterSyntaxWarning(const QString&);
46};
47
48#endif // FIELDFILTEREDIT_H
FieldFilterEdit
Definition field_filter_edit.h:19
StockIconToolButton
Definition stock_icon_tool_button.h:16
SyntaxLineEdit
Definition syntax_line_edit.h:23
syntax_line_edit.h