5 #ifndef FABCOIN_QT_FABCOINAMOUNTFIELD_H 6 #define FABCOIN_QT_FABCOINAMOUNTFIELD_H 78 #endif // FABCOIN_QT_FABCOINAMOUNTFIELD_H Widget for entering fabcoin amounts.
bool eventFilter(QObject *object, QEvent *event)
Intercept focus-in event and ',' key presses.
FabcoinAmountField(QWidget *parent=0)
QSpinBox that uses fixed-point numbers internally and uses our own formatting/parsing functions...
bool validate()
Perform input validation, mark field as invalid if entered value is not valid.
void setSingleStep(const CAmount &step)
Set single step in satoshis.
void setReadOnly(bool fReadOnly)
Make read-only.
int64_t CAmount
Amount in lius (Can be negative)
void setValid(bool valid)
Mark current value as invalid in UI.
void setEnabled(bool fEnabled)
Enable/Disable.
void setValue(const CAmount &value)
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.
void setMinimum(const CAmount &min)
void unitChanged(int idx)
void setDisplayUnit(int unit)
Change unit used to display amount.
void clear()
Make field empty and ready for new input.