JS8Call-Improved master
Loading...
Searching...
No Matches
CallsignValidator.h
1#ifndef CALLSIGN_VALIDATOR_HPP__
2#define CALLSIGN_VALIDATOR_HPP__
3
4#include <QRegularExpression>
5#include <QValidator>
6
7//
8// CallsignValidator - QValidator implementation for callsigns
9//
10class CallsignValidator final : public QValidator {
11 public:
12 CallsignValidator(QObject *parent = nullptr, bool allow_compound = true);
13
14 // QValidator implementation
15 State validate(QString &input, int &pos) const override;
16
17 private:
18 QRegularExpression re_;
19};
20
21#endif
State validate(QString &input, int &pos) const override
Validate the callsign input.
Definition CallsignValidator.cpp:21