aboutsummaryrefslogtreecommitdiff
path: root/src/qt/bitcoinaddressvalidator.h
diff options
context:
space:
mode:
authorPhilip Kaufmann <phil.kaufmann@t-online.de>2013-01-23 21:51:02 +0100
committerPhilip Kaufmann <phil.kaufmann@t-online.de>2013-03-17 18:28:00 +0100
commit32af5266cfc604a32ed90b6099f8b2fb308d6c15 (patch)
tree29624cf171b29d8f6970366617470f5d6a33cb5a /src/qt/bitcoinaddressvalidator.h
parent1a9ee5da327d8079a297ad292a1c16745b75df91 (diff)
Bitcoin-Qt: massive header and cpp cleanup
- try to enforce the same style to all Qt related files - remove unneeded includes from the files - add missing Q_OBJECT, QT_BEGIN_NAMESPACE / QT_END_NAMESPACE - prepares for a pull-req to include Qt5 compatibility
Diffstat (limited to 'src/qt/bitcoinaddressvalidator.h')
-rw-r--r--src/qt/bitcoinaddressvalidator.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/qt/bitcoinaddressvalidator.h b/src/qt/bitcoinaddressvalidator.h
index 9710d122b6..2b6a59367d 100644
--- a/src/qt/bitcoinaddressvalidator.h
+++ b/src/qt/bitcoinaddressvalidator.h
@@ -1,7 +1,7 @@
#ifndef BITCOINADDRESSVALIDATOR_H
#define BITCOINADDRESSVALIDATOR_H
-#include <QRegExpValidator>
+#include <QValidator>
/** Base48 entry widget validator.
Corrects near-miss characters and refuses characters that are no part of base48.
@@ -9,16 +9,13 @@
class BitcoinAddressValidator : public QValidator
{
Q_OBJECT
+
public:
explicit BitcoinAddressValidator(QObject *parent = 0);
State validate(QString &input, int &pos) const;
static const int MaxAddressLength = 35;
-signals:
-
-public slots:
-
};
#endif // BITCOINADDRESSVALIDATOR_H