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