diff options
| author | Wladimir J. van der Laan <[email protected]> | 2011-07-16 19:01:05 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2011-07-16 19:25:02 +0200 |
| commit | a5e6d72339f28699bc356603f695bd620be37e83 (patch) | |
| tree | e1e0501a5b58cbc018f5f6ad60c064f84d747a9c /src/qt/bitcoinamountfield.h | |
| parent | Merge branch 'master' of https://github.com/bitcoin/bitcoin (diff) | |
| download | discoin-a5e6d72339f28699bc356603f695bd620be37e83.tar.xz discoin-a5e6d72339f28699bc356603f695bd620be37e83.zip | |
add sendmany support
Diffstat (limited to 'src/qt/bitcoinamountfield.h')
| -rw-r--r-- | src/qt/bitcoinamountfield.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/qt/bitcoinamountfield.h b/src/qt/bitcoinamountfield.h index 67304c8b3..2a0ef4bd9 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; }; |