Wireshark 4.7.3
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
dissector_syntax_line_edit.h
Go to the documentation of this file.
1
9
10#ifndef DISSECTOR_SYNTAX_LINEEDIT_H
11#define DISSECTOR_SYNTAX_LINEEDIT_H
12
14
15class QEvent;
17
22{
23 Q_OBJECT
24public:
29 explicit DissectorSyntaxLineEdit(QWidget *parent = 0);
30
35
40
41protected:
46 void keyPressEvent(QKeyEvent *event) override { completionKeyPressEvent(event); }
47
52 void focusInEvent(QFocusEvent *event) override { completionFocusInEvent(event); }
53
54public slots:
59 void checkDissectorName(const QString &dissector);
60
61private slots:
66 void changeEvent(QEvent* event) override;
67
68private:
70 QString placeholder_text_;
71
77 void buildCompletionList(const QString &field_word, const QString &preamble) override;
78};
79
80#endif // DISSECTOR_SYNTAX_LINEEDIT_H
void focusInEvent(QFocusEvent *event) override
Handles focus in events, forwarding them to the auto-completion logic.
Definition dissector_syntax_line_edit.h:52
DissectorSyntaxLineEdit(QWidget *parent=0)
Constructs a new DissectorSyntaxLineEdit widget.
Definition dissector_syntax_line_edit.cpp:30
void updateDissectorNames()
Updates the internal list of available dissector names used for validation and completion.
Definition dissector_syntax_line_edit.cpp:46
void keyPressEvent(QKeyEvent *event) override
Handles key press events, forwarding them to the auto-completion logic.
Definition dissector_syntax_line_edit.h:46
void setDefaultPlaceholderText()
Sets the default placeholder text for the line edit widget.
Definition dissector_syntax_line_edit.cpp:58
void checkDissectorName(const QString &dissector)
Validates the syntax of the provided dissector name string.
Definition dissector_syntax_line_edit.cpp:65
A tool button that displays a stock icon.
Definition stock_icon_tool_button.h:19
SyntaxLineEdit(QWidget *parent=0)
Constructs the SyntaxLineEdit in the Empty state with no completer.
Definition syntax_line_edit.cpp:37
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:336
void completionFocusInEvent(QFocusEvent *event)
Triggers a completion refresh when the widget gains focus.
Definition syntax_line_edit.cpp:384
virtual bool event(QEvent *event) override
Intercepts Tab and other keys to trigger or dismiss the completer.
Definition syntax_line_edit.cpp:299