Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
range_syntax_lineedit.h
Go to the documentation of this file.
1
12#ifndef RANGE_SYNTAX_LINEEDIT_H
13#define RANGE_SYNTAX_LINEEDIT_H
14
16
17#include <QWidget>
18
25{
26 Q_OBJECT
27public:
32 explicit RangeSyntaxLineEdit(QWidget *parent = 0);
33
42 void setMaxRange(unsigned int max);
43
44public slots:
50 void checkRange(QString range);
51
52private:
53 unsigned int maxRange_;
54};
55
56#endif // RANGE_SYNTAX_LINEEDIT_H
SyntaxLineEdit specialisation that validates a packet range expression (e.g. "1-5,...
Definition range_syntax_lineedit.h:25
void setMaxRange(unsigned int max)
Sets the inclusive upper bound for range validation.
Definition range_syntax_lineedit.cpp:22
void checkRange(QString range)
Validates range against the current maximum and updates the field's syntax-highlighting state accordi...
Definition range_syntax_lineedit.cpp:27
QLineEdit subclass that adds syntax-state colouring, error messaging, and partial token-based autocom...
Definition syntax_line_edit.h:28