| Wireshark 4.7.3 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
range_syntax_lineedit.h
Go to the documentation of this file.
1
11
12#ifndef RANGE_SYNTAX_LINEEDIT_H
13#define RANGE_SYNTAX_LINEEDIT_H
14
15#include <ui/qt/widgets/syntax_line_edit.h>
16
17#include <QWidget>
18
24 class RangeSyntaxLineEdit : public SyntaxLineEdit
25{
26 Q_OBJECT
27 public:
32 explicit RangeSyntaxLineEdit(QWidget *parent = 0);
33
42 void setMaxRange(unsigned int max);
43
44 public slots:
50 void checkRange(QString range);
51
52 private:
53 unsigned int maxRange_;
54};
55
56#endif // RANGE_SYNTAX_LINEEDIT_H
RangeSyntaxLineEdit::RangeSyntaxLineEdit
RangeSyntaxLineEdit(QWidget *parent=0)
Constructs a RangeSyntaxLineEdit with no maximum range set.
Definition range_syntax_lineedit.cpp:15
RangeSyntaxLineEdit::setMaxRange
void setMaxRange(unsigned int max)
Sets the inclusive upper bound for range validation.
Definition range_syntax_lineedit.cpp:22
RangeSyntaxLineEdit::checkRange
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
SyntaxLineEdit::SyntaxLineEdit
SyntaxLineEdit(QWidget *parent=0)
Constructs the SyntaxLineEdit in the Empty state with no completer.
Definition syntax_line_edit.cpp:37
syntax_line_edit.h