Wladimir J. van der Laan
14 years ago
13 changed files with 178 additions and 28 deletions
@ -0,0 +1,8 @@
@@ -0,0 +1,8 @@
|
||||
#include "bitcoinaddressvalidator.h" |
||||
|
||||
const QString BitcoinAddressValidator::valid_chars = "123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"; |
||||
|
||||
BitcoinAddressValidator::BitcoinAddressValidator(QObject *parent) : |
||||
QRegExpValidator(QRegExp("^["+valid_chars+"]+"), parent) |
||||
{ |
||||
} |
@ -0,0 +1,19 @@
@@ -0,0 +1,19 @@
|
||||
#ifndef BITCOINADDRESSVALIDATOR_H |
||||
#define BITCOINADDRESSVALIDATOR_H |
||||
|
||||
#include <QRegExpValidator> |
||||
|
||||
class BitcoinAddressValidator : public QRegExpValidator |
||||
{ |
||||
Q_OBJECT |
||||
public: |
||||
explicit BitcoinAddressValidator(QObject *parent = 0); |
||||
|
||||
static const QString valid_chars; |
||||
signals: |
||||
|
||||
public slots: |
||||
|
||||
}; |
||||
|
||||
#endif // BITCOINADDRESSVALIDATOR_H
|
Loading…
Reference in new issue