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);
22 // Qt messes up the tab chain by default in some cases (issue http://bugreports.qt.nokia.com/browse/QTBUG-10907)
23 // Hence we have to set it up manually
24 QWidget *setupTabChain(QWidget *prev);
30 // Intercept '.' and ',' keys, if pressed focus a specified widget
31 bool eventFilter(QObject *object, QEvent *event);
34 QValidatedLineEdit *amount;
35 QValidatedLineEdit *decimals;
39 #endif // BITCOINFIELD_H