![]() |
Fabcoin Core
0.16.2
P2P Digital Currency
|
Widget for entering token amounts. More...
#include <tokenamountfield.h>
Signals | |
| void | valueChanged () |
Public Member Functions | |
| TokenAmountField (QWidget *parent=0) | |
| int256_t | value (bool *value=0) const |
| void | setValue (const int256_t &value) |
| void | setSingleStep (const int256_t &step) |
| Set single step. More... | |
| void | setReadOnly (bool fReadOnly) |
| Make read-only. More... | |
| void | setValid (bool valid) |
| Mark current value as invalid in UI. More... | |
| bool | validate () |
| Perform input validation, mark field as invalid if entered value is not valid. More... | |
| void | clear () |
| Make field empty and ready for new input. More... | |
| void | setEnabled (bool fEnabled) |
| Enable/Disable. More... | |
| int256_t | minimum () const |
| void | setMinimum (const int256_t &min) |
| void | setTotalSupply (const int256_t &value) |
| void | setDecimalUnits (int value) |
| QString | text () const |
Protected Member Functions | |
| bool | eventFilter (QObject *object, QEvent *event) |
| Intercept focus-in event and ',' key presses. More... | |
Properties | |
| int256_t | value |
Private Attributes | |
| TokenAmountSpinBox * | amount |
Widget for entering token amounts.
Definition at line 14 of file tokenamountfield.h.
|
explicit |
Definition at line 183 of file tokenamountfield.cpp.
| void TokenAmountField::clear | ( | ) |
Make field empty and ready for new input.
Definition at line 200 of file tokenamountfield.cpp.
|
protected |
Intercept focus-in event and ',' key presses.
Definition at line 226 of file tokenamountfield.cpp.
| int256_t TokenAmountField::minimum | ( | ) | const |
| void TokenAmountField::setDecimalUnits | ( | int | value | ) |
Definition at line 266 of file tokenamountfield.cpp.
| void TokenAmountField::setEnabled | ( | bool | fEnabled | ) |
Enable/Disable.
Definition at line 205 of file tokenamountfield.cpp.
| void TokenAmountField::setMinimum | ( | const int256_t & | min | ) |
| void TokenAmountField::setReadOnly | ( | bool | fReadOnly | ) |
Make read-only.
Definition at line 246 of file tokenamountfield.cpp.
| void TokenAmountField::setSingleStep | ( | const int256_t & | step | ) |
Set single step.
| void TokenAmountField::setTotalSupply | ( | const int256_t & | value | ) |
Definition at line 261 of file tokenamountfield.cpp.
| void TokenAmountField::setValid | ( | bool | valid | ) |
Mark current value as invalid in UI.
Definition at line 218 of file tokenamountfield.cpp.
| void TokenAmountField::setValue | ( | const int256_t & | value | ) |
Definition at line 241 of file tokenamountfield.cpp.
| QString TokenAmountField::text | ( | ) | const |
| bool TokenAmountField::validate | ( | ) |
Perform input validation, mark field as invalid if entered value is not valid.
Definition at line 210 of file tokenamountfield.cpp.
| int256_t TokenAmountField::value | ( | bool * | value = 0 | ) | const |
|
signal |
Definition at line 167 of file moc_tokenamountfield.cpp.
|
private |
Definition at line 60 of file tokenamountfield.h.
|
readwrite |
Definition at line 18 of file tokenamountfield.h.
1.8.11