From 2d1068e60bce7ae1fff11623454900e8cee956b1 Mon Sep 17 00:00:00 2001 From: Christoph Berg Date: Tue, 23 Aug 2022 10:23:16 +0200 Subject: New upstream version 2.6.0~rc3+repack --- validators/MaidenheadLocatorValidator.hpp | 52 +++++++++++++++---------------- 1 file changed, 26 insertions(+), 26 deletions(-) (limited to 'validators/MaidenheadLocatorValidator.hpp') diff --git a/validators/MaidenheadLocatorValidator.hpp b/validators/MaidenheadLocatorValidator.hpp index 25c2664b..104f7d88 100755 --- a/validators/MaidenheadLocatorValidator.hpp +++ b/validators/MaidenheadLocatorValidator.hpp @@ -1,26 +1,26 @@ -#ifndef MAIDENHEAD_LOCATOR_VALIDATOR_HPP__ -#define MAIDENHEAD_LOCATOR_VALIDATOR_HPP__ - -#include -#include - -// -// MaidenheadLocatorValidator - QValidator implementation for grid locators -// -class MaidenheadLocatorValidator final - : public QValidator -{ -public: - enum class Length {field = 2, square = 4, subsquare = 6, extended = 8}; - MaidenheadLocatorValidator (QObject * parent = nullptr - , Length length = Length::subsquare - , Length required = Length::square); - - // QValidator implementation - State validate (QString& input, int& pos) const override; - -private: - QRegularExpression re_; -}; - -#endif +#ifndef MAIDENHEAD_LOCATOR_VALIDATOR_HPP__ +#define MAIDENHEAD_LOCATOR_VALIDATOR_HPP__ + +#include +#include + +// +// MaidenheadLocatorValidator - QValidator implementation for grid locators +// +class MaidenheadLocatorValidator final + : public QValidator +{ +public: + enum class Length {field = 2, square = 4, subsquare = 6, extended = 8}; + MaidenheadLocatorValidator (QObject * parent = nullptr + , Length length = Length::subsquare + , Length required = Length::square); + + // QValidator implementation + State validate (QString& input, int& pos) const override; + +private: + QRegularExpression re_; +}; + +#endif -- cgit v1.2.3