Wireshark  4.3.0
The Wireshark network protocol analyzer
find_line_edit.h
Go to the documentation of this file.
1 
10 #ifndef FIND_LINE_EDIT_H
11 #define FIND_LINE_EDIT_H
12 
13 #include <QLineEdit>
14 
15 namespace Ui {
16 class FindLineEdit;
17 }
18 
19 class FindLineEdit : public QLineEdit
20 {
21  Q_OBJECT
22 
23 public:
24  explicit FindLineEdit(QWidget *parent = 0) : QLineEdit(parent), use_regex_(false) { }
25  ~FindLineEdit() { }
26 
27 signals:
28  void useRegexFind(bool);
29 
30 private slots:
31  void setUseTextual();
32  void setUseRegex();
33 
34 private:
35  void contextMenuEvent(QContextMenuEvent *event);
36  void keyPressEvent(QKeyEvent *event);
37  void validateText();
38 
39  bool use_regex_;
40 };
41 
42 #endif // FIND_LINE_EDIT_H
Definition: find_line_edit.h:20