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
14
15class QEvent;
17
22{
23 Q_OBJECT
24public:
29 explicit FieldFilterEdit(QWidget *parent = 0);
30
31protected:
37
43
48 void focusOutEvent(QFocusEvent *event);
49
50public slots:
55 bool checkFilter();
56
57private slots:
62 void checkFilter(const QString &filter_text);
63
68 void changeEvent(QEvent* event);
69
70private:
72 QString placeholder_text_;
73
77 void setDefaultPlaceholderText();
78
84 void buildCompletionList(const QString &field_word, const QString &preamble);
85
86signals:
91 void pushFilterSyntaxStatus(const QString& status);
92
97
102 void pushFilterSyntaxWarning(const QString& warning);
103};
104
105#endif // FIELDFILTEREDIT_H
A specialized line edit for entering and validating field filters with auto-completion.
Definition field_filter_edit.h:22
void focusInEvent(QFocusEvent *event)
Handles focus in events, triggering completion logic if necessary.
Definition field_filter_edit.h:42
void keyPressEvent(QKeyEvent *event)
Handles key press events, routing them to completion logic.
Definition field_filter_edit.h:36
void pushFilterSyntaxStatus(const QString &status)
Signal emitted to display a syntax status message.
void pushFilterSyntaxWarning(const QString &warning)
Signal emitted to display a syntax warning message.
bool checkFilter()
Checks the validity of the current filter text.
Definition field_filter_edit.cpp:66
void popFilterSyntaxStatus()
Signal emitted to remove or pop the current syntax status message.
void focusOutEvent(QFocusEvent *event)
Handles focus out events.
Definition field_filter_edit.cpp:59
A tool button that displays a stock icon.
Definition stock_icon_tool_button.h:19
QLineEdit subclass that adds syntax-state colouring, error messaging, and partial token-based autocom...
Definition syntax_line_edit.h:28
virtual bool event(QEvent *event)
Intercepts Tab and other keys to trigger or dismiss the completer.
Definition syntax_line_edit.cpp:295
void completionKeyPressEvent(QKeyEvent *event)
Handles key press events while the completer popup is visible, forwarding navigation keys to the popu...
Definition syntax_line_edit.cpp:333
void completionFocusInEvent(QFocusEvent *event)
Triggers a completion refresh when the widget gains focus.
Definition syntax_line_edit.cpp:381