Wireshark  4.3.0
The Wireshark network protocol analyzer
dissector_syntax_line_edit.h
Go to the documentation of this file.
1 
10 #ifndef DISSECTOR_SYNTAX_LINEEDIT_H
11 #define DISSECTOR_SYNTAX_LINEEDIT_H
12 
14 
15 class QEvent;
17 
19 {
20  Q_OBJECT
21 public:
22  explicit DissectorSyntaxLineEdit(QWidget *parent = 0);
23  void updateDissectorNames();
24  void setDefaultPlaceholderText();
25 
26 protected:
27  void keyPressEvent(QKeyEvent *event) { completionKeyPressEvent(event); }
28  void focusInEvent(QFocusEvent *event) { completionFocusInEvent(event); }
29 
30 public slots:
31  void checkDissectorName(const QString &dissector);
32 
33 private slots:
34  void changeEvent(QEvent* event);
35 
36 private:
37  QString placeholder_text_;
38 
39  void buildCompletionList(const QString &field_word, const QString &preamble);
40 };
41 
42 #endif // DISSECTOR_SYNTAX_LINEEDIT_H
Definition: dissector_syntax_line_edit.h:19
Definition: stock_icon_tool_button.h:16
Definition: syntax_line_edit.h:23