aboutsummaryrefslogtreecommitdiff
path: root/src/qt/bitcoinamountfield.h
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2011-07-16 19:01:05 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2011-07-16 19:25:02 +0200
commita5e6d72339f28699bc356603f695bd620be37e83 (patch)
treee1e0501a5b58cbc018f5f6ad60c064f84d747a9c /src/qt/bitcoinamountfield.h
parentd4211176208b5e4ae4a699c6ce3239447752cdb2 (diff)
add sendmany support
Diffstat (limited to 'src/qt/bitcoinamountfield.h')
-rw-r--r--src/qt/bitcoinamountfield.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/qt/bitcoinamountfield.h b/src/qt/bitcoinamountfield.h
index 67304c8b3a..2a0ef4bd99 100644
--- a/src/qt/bitcoinamountfield.h
+++ b/src/qt/bitcoinamountfield.h
@@ -4,7 +4,7 @@
#include <QWidget>
QT_BEGIN_NAMESPACE
-class QLineEdit;
+class QValidatedLineEdit;
QT_END_NAMESPACE
// Coin amount entry widget with separate parts for whole
@@ -18,6 +18,10 @@ public:
void setText(const QString &text);
QString text() const;
+ bool validate();
+ // Qt messes up the tab chain by default in some cases (issue http://bugreports.qt.nokia.com/browse/QTBUG-10907)
+ // Hence we have to set it up manually
+ QWidget *setupTabChain(QWidget *prev);
signals:
void textChanged();
@@ -27,8 +31,8 @@ protected:
bool eventFilter(QObject *object, QEvent *event);
private:
- QLineEdit *amount;
- QLineEdit *decimals;
+ QValidatedLineEdit *amount;
+ QValidatedLineEdit *decimals;
};