Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
#include <qt/bitcoinamountfield.h>
#include <qt/bitcoinunits.h>
#include <qt/guiutil.h>
#include <QApplication>
#include <QAbstractSpinBox>
#include <QHBoxLayout>
#include <QKeyEvent>
#include <QLineEdit>
#include <qt/bitcoinamountfield.moc>
Include dependency graph for bitcoinamountfield.cpp:
Go to the source code of this file.
Classes | |
class | AmountValidator |
Amount widget validator, checks for valid CAmount value. More... | |
class | AmountLineEdit |
QLineEdit that uses fixed-point numbers internally and uses our own formatting/parsing functions. More... | |
Functions | |
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. More... | |
Function Documentation
◆ parse()
|
static |
Parse a string into a number of base monetary units and return validity.
- Note
- Must return 0 if !valid.
Definition at line 21 of file bitcoinamountfield.cpp.
References BitcoinUnits::maxMoney(), and BitcoinUnits::parse().
Referenced by AmountLineEdit::fixup(), AmountValidator::validate(), and AmountLineEdit::value().