Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
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
15namespace Ui {
16class FindLineEdit;
17}
18
22class FindLineEdit : public QLineEdit
23{
24 Q_OBJECT
25
26public:
31 explicit FindLineEdit(QWidget *parent = 0) : QLineEdit(parent), use_regex_(false) { }
32
37
38signals:
43 void useRegexFind(bool use_regex);
44
45private slots:
49 void setUseTextual();
50
54 void setUseRegex();
55
56private:
61 void contextMenuEvent(QContextMenuEvent *event);
62
67 void keyPressEvent(QKeyEvent *event);
68
72 void validateText();
73
75 bool use_regex_;
76};
77
78#endif // FIND_LINE_EDIT_H
A custom line edit for find operations, supporting regex and textual search.
Definition find_line_edit.h:23
~FindLineEdit()
Destroys the FindLineEdit.
Definition find_line_edit.h:36
FindLineEdit(QWidget *parent=0)
Constructs a new FindLineEdit.
Definition find_line_edit.h:31
void useRegexFind(bool use_regex)
Signal emitted when the regex search mode is toggled.