7 class QValidatedLineEdit;
10 // Coin amount entry widget with separate parts for whole
11 // coins and decimals.
12 class BitcoinAmountField: public QWidget
15 Q_PROPERTY(QString text READ text WRITE setText NOTIFY textChanged USER true);
17 explicit BitcoinAmountField(QWidget *parent = 0);
19 void setText(const QString &text);
24 // Qt messes up the tab chain by default in some cases (issue http://bugreports.qt.nokia.com/browse/QTBUG-10907)
25 // Hence we have to set it up manually
26 QWidget *setupTabChain(QWidget *prev);
32 // Intercept '.' and ',' keys, if pressed focus a specified widget
33 bool eventFilter(QObject *object, QEvent *event);
36 QValidatedLineEdit *amount;
37 QValidatedLineEdit *decimals;
41 #endif // BITCOINFIELD_H