1 #ifndef BITCOINAMOUNTFIELD_H
2 #define BITCOINAMOUNTFIELD_H
22 qint64
value(
bool *valid=0)
const;
61 #endif // BITCOINAMOUNTFIELD_H
Widget for entering bitcoin amounts.
bool validate()
Perform input validation, mark field as invalid if entered value is not valid.
QWidget * setupTabChain(QWidget *prev)
Qt messes up the tab chain by default in some cases (issue https://bugreports.qt-project.org/browse/QTBUG-10907), in these cases we have to set it up manually.
bool eventFilter(QObject *object, QEvent *event)
Intercept focus-in event and ',' key presses.
BitcoinAmountField(QWidget *parent=0)
void unitChanged(int idx)
void clear()
Make field empty and ready for new input.
void setValid(bool valid)
Mark current value as invalid in UI.
void setText(const QString &text)
void setDisplayUnit(int unit)
Change unit used to display amount.
void setValue(qint64 value)