QSpinBox that uses fixed-point numbers internally and uses our own formatting/parsing functions.
More...
|
Amount | 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 22 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()
Amount 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 160 of file bitcoinamountfield.cpp.
◆ SetAllowEmpty()
void AmountSpinBox::SetAllowEmpty |
( |
bool |
allow | ) |
|
|
inline |
◆ setDisplayUnit()
void AmountSpinBox::setDisplayUnit |
( |
int |
unit | ) |
|
|
inline |
◆ SetMaxValue()
void AmountSpinBox::SetMaxValue |
( |
const Amount & |
value | ) |
|
|
inline |
◆ SetMinValue()
void AmountSpinBox::SetMinValue |
( |
const Amount & |
value | ) |
|
|
inline |
◆ setSingleStep()
void AmountSpinBox::setSingleStep |
( |
const Amount |
step | ) |
|
|
inline |
◆ setValue()
void AmountSpinBox::setValue |
( |
const Amount |
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()
Amount 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: