Wireshark 5.1.0
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;
16
21{
22 Q_OBJECT
23public:
28 explicit DissectorSyntaxLineEdit(QWidget *parent = 0);
29
34
39
40protected:
45 void keyPressEvent(QKeyEvent *event) override { completionKeyPressEvent(event); }
46
51 void focusInEvent(QFocusEvent *event) override { completionFocusInEvent(event); }
52
53public slots:
58 void checkDissectorName(const QString &dissector);
59
60private slots:
65 void changeEvent(QEvent* event) override;
66
67private:
69 QString placeholder_text_;
70
76 void buildCompletionList(const QString &field_word, const QString &preamble) override;
77};
78
79#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:51
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:45
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
SyntaxLineEdit(QWidget *parent=0)
Constructs the SyntaxLineEdit in the Empty state with no completer.
Definition syntax_line_edit.cpp:38
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:337
void completionFocusInEvent(QFocusEvent *event)
Triggers a completion refresh when the widget gains focus.
Definition syntax_line_edit.cpp:385
virtual bool event(QEvent *event) override
Intercepts Tab and other keys to trigger or dismiss the completer.
Definition syntax_line_edit.cpp:300