1 #ifndef BITCOINADDRESSVALIDATOR_H
2 #define BITCOINADDRESSVALIDATOR_H
4 #include <QRegExpValidator>
6 /** Base48 entry widget validator.
7 Corrects near-miss characters and refuses characters that are no part of base48.
9 class BitcoinAddressValidator : public QValidator
13 explicit BitcoinAddressValidator(QObject *parent = 0);
15 State validate(QString &input, int &pos) const;
17 static const int MaxAddressLength = 35;
24 #endif // BITCOINADDRESSVALIDATOR_H