 |
Bitcoin Core
22.99.0
P2P Digital Currency
|
Go to the documentation of this file.
5 #ifndef BITCOIN_QT_BITCOINAMOUNTFIELD_H
6 #define BITCOIN_QT_BITCOINAMOUNTFIELD_H
73 bool eventFilter(QObject *
object, QEvent *event)
override;
84 #endif // BITCOIN_QT_BITCOINAMOUNTFIELD_H
void SetAllowEmpty(bool allow)
If allow empty is set to false the field will be set to the minimum allowed value if left empty.
void unitChanged(int idx)
void setReadOnly(bool fReadOnly)
Make read-only.
void setDisplayUnit(int unit)
Change unit used to display amount.
void SetMaxValue(const CAmount &value)
Set the maximum value in satoshis.
QWidget * setupTabChain(QWidget *prev)
Qt messes up the tab chain by default in some cases (issue https://bugreports.qt-project....
int64_t CAmount
Amount in satoshis (Can be negative)
bool eventFilter(QObject *object, QEvent *event) override
Intercept focus-in event and ',' key presses.
QSpinBox that uses fixed-point numbers internally and uses our own formatting/parsing functions.
void setValue(const CAmount &value)
void clear()
Make field empty and ready for new input.
void setSingleStep(const CAmount &step)
Set single step in satoshis.
void setValid(bool valid)
Mark current value as invalid in UI.
Widget for entering bitcoin amounts.
BitcoinAmountField(QWidget *parent=nullptr)
void SetMinValue(const CAmount &value)
Set the minimum value in satoshis.
bool validate()
Perform input validation, mark field as invalid if entered value is not valid.
void setEnabled(bool fEnabled)
Enable/Disable.