![]() |
Anoncoin
0.9.4
P2P Digital Currency
|
Widget for entering anoncoin amounts. More...
#include <anoncoinamountfield.h>
Signals | |
void | textChanged () |
Public Member Functions | |
AnoncoinAmountField (QWidget *parent=0) | |
qint64 | value (bool *valid=0) const |
void | setValue (qint64 value) |
void | setSingleStep (qint64 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... | |
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 Member Functions | |
void | setText (const QString &text) |
QString | text () const |
Private Attributes | |
QDoubleSpinBox * | amount |
QValueComboBox * | unit |
int | currentUnit |
qint64 | nSingleStep |
Widget for entering anoncoin amounts.
Definition at line 18 of file anoncoinamountfield.h.
|
explicit |
void AnoncoinAmountField::clear | ( | ) |
Make field empty and ready for new input.
Definition at line 59 of file anoncoinamountfield.cpp.
|
protected |
Intercept focus-in event and ',' key presses.
Definition at line 96 of file anoncoinamountfield.cpp.
void AnoncoinAmountField::setDisplayUnit | ( | int | unit | ) |
Change unit used to display amount.
Definition at line 178 of file anoncoinamountfield.cpp.
void AnoncoinAmountField::setReadOnly | ( | bool | fReadOnly | ) |
Make read-only.
Definition at line 140 of file anoncoinamountfield.cpp.
void AnoncoinAmountField::setSingleStep | ( | qint64 | step | ) |
Set single step in satoshis.
Definition at line 183 of file anoncoinamountfield.cpp.
|
private |
QWidget * AnoncoinAmountField::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 117 of file anoncoinamountfield.cpp.
void AnoncoinAmountField::setValid | ( | bool | valid | ) |
Mark current value as invalid in UI.
Definition at line 80 of file anoncoinamountfield.cpp.
void AnoncoinAmountField::setValue | ( | qint64 | value | ) |
Definition at line 135 of file anoncoinamountfield.cpp.
|
private |
|
signal |
Definition at line 166 of file moc_anoncoinamountfield.cpp.
|
privateslot |
Definition at line 146 of file anoncoinamountfield.cpp.
bool AnoncoinAmountField::validate | ( | ) |
Perform input validation, mark field as invalid if entered value is not valid.
Definition at line 65 of file anoncoinamountfield.cpp.
qint64 AnoncoinAmountField::value | ( | bool * | valid = 0 | ) | const |
|
private |
Definition at line 60 of file anoncoinamountfield.h.
|
private |
Definition at line 62 of file anoncoinamountfield.h.
|
private |
Definition at line 63 of file anoncoinamountfield.h.
|
private |
Definition at line 61 of file anoncoinamountfield.h.
|
readwrite |
Definition at line 22 of file anoncoinamountfield.h.