Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
QLineEdit that uses fixed-point numbers internally and uses our own formatting/parsing functions. More...
Signals | |
void | valueChanged () |
Public Member Functions | |
AmountLineEdit (QWidget *parent) | |
void | fixup (const QString &input) |
CAmount | value (bool *valid_out=0) const |
void | setValue (const CAmount &value) |
void | setDisplayUnit (int unit) |
QSize | minimumSizeHint () const |
Protected Member Functions | |
bool | event (QEvent *event) |
Private Attributes | |
AmountValidator * | amountValidator |
int | currentUnit |
Detailed Description
QLineEdit that uses fixed-point numbers internally and uses our own formatting/parsing functions.
Definition at line 65 of file bitcoinamountfield.cpp.
Constructor & Destructor Documentation
◆ AmountLineEdit()
|
inlineexplicit |
Definition at line 70 of file bitcoinamountfield.cpp.
References amountValidator, and valueChanged().
Member Function Documentation
◆ event()
|
inlineprotected |
Definition at line 130 of file bitcoinamountfield.cpp.
References fixup().
◆ fixup()
|
inline |
Definition at line 80 of file bitcoinamountfield.cpp.
References currentUnit, BitcoinUnits::format(), parse(), and BitcoinUnits::separatorAlways.
Referenced by event().
◆ minimumSizeHint()
|
inline |
Definition at line 115 of file bitcoinamountfield.cpp.
References BitcoinUnits::DASH, GUIUtil::dashThemeActive(), BitcoinUnits::format(), BitcoinUnits::maxMoney(), and BitcoinUnits::separatorAlways.
◆ setDisplayUnit()
|
inline |
Definition at line 101 of file bitcoinamountfield.cpp.
References amountValidator, currentUnit, setValue(), AmountValidator::updateUnit(), and value().
Referenced by BitcoinAmountField::unitChanged().
◆ setValue()
|
inline |
Definition at line 95 of file bitcoinamountfield.cpp.
References currentUnit, BitcoinUnits::format(), BitcoinUnits::separatorAlways, value(), and valueChanged().
Referenced by setDisplayUnit(), and BitcoinAmountField::setValue().
◆ value()
|
inline |
Definition at line 90 of file bitcoinamountfield.cpp.
References currentUnit, and parse().
Referenced by setDisplayUnit(), setValue(), and BitcoinAmountField::value().
◆ valueChanged
|
signal |
Referenced by AmountLineEdit(), and setValue().
Member Data Documentation
◆ amountValidator
|
private |
Definition at line 68 of file bitcoinamountfield.cpp.
Referenced by AmountLineEdit(), and setDisplayUnit().
◆ currentUnit
|
private |
Definition at line 127 of file bitcoinamountfield.cpp.
Referenced by fixup(), setDisplayUnit(), setValue(), and value().
The documentation for this class was generated from the following file:
- src/qt/bitcoinamountfield.cpp