![]() |
Raven Core
3.0.0
P2P Digital Currency
|
Widget for entering raven amounts. More...
#include <ravenamountfield.h>
Signals | |
| void | valueChanged () |
Public Member Functions | |
| RavenAmountField (QWidget *parent=0) | |
| CAmount | value (bool *value=0) const |
| void | setValue (const CAmount &value) |
| void | setSingleStep (const CAmount &step) |
| Set single step in satoshis. 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 | setDisplayUnit (int unit) |
| Change unit used to display amount. More... | |
| void | clear () |
| Make field empty and ready for new input. More... | |
| void | setEnabled (bool fEnabled) |
| Enable/Disable. More... | |
| QWidget * | setupTabChain (QWidget *prev) |
| Qt messes up the tab chain by default in some cases (issue https://bugreports.qt-project.org/browse/QTBUG-10907), in these cases we have to set it up manually. More... | |
Protected Member Functions | |
| bool | eventFilter (QObject *object, QEvent *event) |
| Intercept focus-in event and ',' key presses. More... | |
Properties | |
| qint64 | value |
Private Slots | |
| void | unitChanged (int idx) |
Private Attributes | |
| AmountSpinBox * | amount |
| QValueComboBox * | unit |
Widget for entering raven amounts.
Definition at line 21 of file ravenamountfield.h.
|
explicit |
| void RavenAmountField::clear | ( | ) |
Make field empty and ready for new input.
Definition at line 253 of file ravenamountfield.cpp.
|
protected |
Intercept focus-in event and ',' key presses.
Definition at line 282 of file ravenamountfield.cpp.
| void RavenAmountField::setDisplayUnit | ( | int | unit | ) |
Change unit used to display amount.
Definition at line 325 of file ravenamountfield.cpp.
| void RavenAmountField::setEnabled | ( | bool | fEnabled | ) |
Enable/Disable.
Definition at line 259 of file ravenamountfield.cpp.
| void RavenAmountField::setReadOnly | ( | bool | fReadOnly | ) |
Make read-only.
Definition at line 309 of file ravenamountfield.cpp.
| void RavenAmountField::setSingleStep | ( | const CAmount & | step | ) |
Set single step in satoshis.
Definition at line 330 of file ravenamountfield.cpp.
| QWidget * RavenAmountField::setupTabChain | ( | QWidget * | prev | ) |
Qt messes up the tab chain by default in some cases (issue https://bugreports.qt-project.org/browse/QTBUG-10907), in these cases we have to set it up manually.
Definition at line 292 of file ravenamountfield.cpp.
| void RavenAmountField::setValid | ( | bool | valid | ) |
Mark current value as invalid in UI.
Definition at line 273 of file ravenamountfield.cpp.
| void RavenAmountField::setValue | ( | const CAmount & | value | ) |
|
privateslot |
Definition at line 314 of file ravenamountfield.cpp.
| bool RavenAmountField::validate | ( | ) |
Perform input validation, mark field as invalid if entered value is not valid.
Definition at line 265 of file ravenamountfield.cpp.
| CAmount RavenAmountField::value | ( | bool * | value = 0 | ) | const |
|
signal |
|
private |
Definition at line 68 of file ravenamountfield.h.
|
private |
Definition at line 69 of file ravenamountfield.h.
|
readwrite |
Definition at line 27 of file ravenamountfield.h.
1.8.13