QSpinBox that uses fixed-point numbers internally and uses our own formatting/parsing functions.
More...
|
CAmount | parse (const QString &text, bool *valid_out=nullptr) const |
| Parse a string into a number of base monetary units and return validity. More...
|
|
QSpinBox that uses fixed-point numbers internally and uses our own formatting/parsing functions.
Definition at line 24 of file bitcoinamountfield.cpp.
◆ AmountSpinBox()
AmountSpinBox::AmountSpinBox |
( |
QWidget * |
parent | ) |
|
|
inlineexplicit |
◆ event()
bool AmountSpinBox::event |
( |
QEvent * |
event | ) |
|
|
inlineoverrideprotected |
◆ fixup()
void AmountSpinBox::fixup |
( |
QString & |
input | ) |
const |
|
inlineoverride |
◆ minimumSizeHint()
QSize AmountSpinBox::minimumSizeHint |
( |
| ) |
const |
|
inlineoverride |
◆ parse()
CAmount AmountSpinBox::parse |
( |
const QString & |
text, |
|
|
bool * |
valid_out = nullptr |
|
) |
| const |
|
inlineprivate |
Parse a string into a number of base monetary units and return validity.
- Note
- Must return 0 if !valid.
Definition at line 165 of file bitcoinamountfield.cpp.
◆ SetAllowEmpty()
void AmountSpinBox::SetAllowEmpty |
( |
bool |
allow | ) |
|
|
inline |
◆ setDisplayUnit()
◆ SetMaxValue()
void AmountSpinBox::SetMaxValue |
( |
const CAmount & |
value | ) |
|
|
inline |
◆ SetMinValue()
void AmountSpinBox::SetMinValue |
( |
const CAmount & |
value | ) |
|
|
inline |
◆ setSingleStep()
void AmountSpinBox::setSingleStep |
( |
const CAmount & |
step | ) |
|
|
inline |
◆ setValue()
void AmountSpinBox::setValue |
( |
const CAmount & |
value | ) |
|
|
inline |
◆ stepBy()
void AmountSpinBox::stepBy |
( |
int |
steps | ) |
|
|
inlineoverride |
◆ stepEnabled()
StepEnabled AmountSpinBox::stepEnabled |
( |
| ) |
const |
|
inlineoverrideprotected |
◆ validate()
QValidator::State AmountSpinBox::validate |
( |
QString & |
text, |
|
|
int & |
pos |
|
) |
| const |
|
inlineoverride |
◆ value()
CAmount AmountSpinBox::value |
( |
bool * |
valid_out = nullptr | ) |
const |
|
inline |
◆ valueChanged
void AmountSpinBox::valueChanged |
( |
| ) |
|
|
signal |
◆ cachedMinimumSizeHint
QSize AmountSpinBox::cachedMinimumSizeHint |
|
mutableprivate |
◆ currentUnit
◆ m_allow_empty
bool AmountSpinBox::m_allow_empty {true} |
|
private |
◆ m_max_amount
◆ m_min_amount
◆ singleStep
The documentation for this class was generated from the following file: