Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
bitcoinamountfield.cpp
Go to the documentation of this file.
120 int w = fm.width(BitcoinUnits::format(BitcoinUnits::DASH, BitcoinUnits::maxMoney(), false, BitcoinUnits::separatorAlways));
138 QKeyEvent periodKeyEvent(event->type(), Qt::Key_Period, keyEvent->modifiers(), ".", keyEvent->isAutoRepeat(), keyEvent->count());
249 amount->setPlaceholderText(tr("Amount in %1").arg(units->data(idx,Qt::DisplayRole).toString()));
bool validate()
Perform input validation, mark field as invalid if entered value is not valid.
Definition: bitcoinamountfield.cpp:194
bool dashThemeActive()
Check if a dash specific theme is activated (light/dark).
Definition: guiutil.cpp:1775
Amount widget validator, checks for valid CAmount value.
Definition: bitcoinamountfield.cpp:37
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.
Definition: bitcoinamountfield.cpp:220
Definition: bitcoinunits.h:60
bool eventFilter(QObject *object, QEvent *event)
Intercept focus-in event and ',' key presses.
Definition: bitcoinamountfield.cpp:210
AmountValidator * amountValidator
Definition: bitcoinamountfield.cpp:68
static bool parse(int unit, const QString &value, CAmount *val_out)
Parse string to coin amount.
Definition: bitcoinunits.cpp:192
BitcoinAmountField(QWidget *parent=0)
Definition: bitcoinamountfield.cpp:159
static CAmount parse(const QString &text, int nUnit, bool *valid_out=0)
Parse a string into a number of base monetary units and return validity.
Definition: bitcoinamountfield.cpp:21
QLineEdit that uses fixed-point numbers internally and uses our own formatting/parsing functions...
Definition: bitcoinamountfield.cpp:65
AmountValidator(QObject *parent)
Definition: bitcoinamountfield.cpp:42
QVariant data(const QModelIndex &index, int role) const
Definition: bitcoinunits.cpp:247
void valueChanged()
QString getThemedStyleQString(ThemedStyle style)
Helper to get css style strings which are injected into rich text through qt.
Definition: guiutil.cpp:210
State validate(QString &input, int &pos) const
Definition: bitcoinamountfield.cpp:46
void setValid(bool valid)
Mark current value as invalid in UI.
Definition: bitcoinamountfield.cpp:202
void valueChanged()
void setDisplayUnit(int unit)
Change unit used to display amount.
Definition: bitcoinamountfield.cpp:254
void setValue(const CAmount &value)
Definition: bitcoinamountfield.cpp:231
Definition: bitcoinunits.h:70
static QString format(int unit, const CAmount &amount, bool plussign=false, SeparatorStyle separators=separatorStandard)
Format as string.
Definition: bitcoinunits.cpp:119
static CAmount maxMoney()
Return maximum number of base units (Satoshis)
Definition: bitcoinunits.cpp:271