Wireshark 4.7.2
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
DialogFilterValidator Class Reference

A validator for filter strings used by the FilterDialog fields. More...

#include <filter_dialog.h>

Inheritance diagram for DialogFilterValidator:

Public Member Functions

virtual QValidator::State validate (QString &input, int &pos) const override
 Validates the input filter string.

Detailed Description

A validator for filter strings used by the FilterDialog fields.

Distinct from the FilterValidator base in ui/qt/models/: this one is local to the saved-filters dialog. (When the dialog migrates onto FilterEdit in a later stage, this can be retired in favour of the injected validators.)

Member Function Documentation

◆ validate()

QValidator::State DialogFilterValidator::validate ( QString & input,
int & pos ) const
overridevirtual

Validates the input filter string.

Parameters
inputThe filter string to validate.
posThe cursor position.
Returns
The validation state (Acceptable, Intermediate, or Invalid).

The documentation for this class was generated from the following files: