10#ifndef DISSECTOR_SYNTAX_LINEEDIT_H
11#define DISSECTOR_SYNTAX_LINEEDIT_H
66 void changeEvent(QEvent*
event)
override;
70 QString placeholder_text_;
77 void buildCompletionList(
const QString &field_word,
const QString &preamble)
override;
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
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