5 #ifndef BITCOIN_QT_BITCOINAMOUNTFIELD_H
6 #define BITCOIN_QT_BITCOINAMOUNTFIELD_H
int64_t CAmount
Amount in satoshis (Can be negative)
QSpinBox that uses fixed-point numbers internally and uses our own formatting/parsing functions.
Widget for entering bitcoin amounts.
void setEnabled(bool fEnabled)
Enable/Disable.
void setSingleStep(const CAmount &step)
Set single step in satoshis.
void setReadOnly(bool fReadOnly)
Make read-only.
void unitChanged(int idx)
void setDisplayUnit(int unit)
Change unit used to display amount.
void clear()
Make field empty and ready for new input.
bool validate()
Perform input validation, mark field as invalid if entered value is not valid.
BitcoinAmountField(QWidget *parent=0)
QWidget * setupTabChain(QWidget *prev)
Qt messes up the tab chain by default in some cases (issue https://bugreports.qt-project....
void setValid(bool valid)
Mark current value as invalid in UI.
bool eventFilter(QObject *object, QEvent *event)
Intercept focus-in event and ',' key presses.
void setValue(const CAmount &value)