5 #if defined(HAVE_CONFIG_H) 19 #include <QApplication> 25 platformStyle(_platformStyle)
164 QWidget::setTabOrder(prev,
ui->
payTo);
204 return ui->
payTo->text().isEmpty();
221 if (e->type() == QEvent::PaletteChange) {
227 QWidget::changeEvent(e);
237 if(!associatedLabel.isEmpty())
QHBoxLayout * payToLayout
bool validate()
Perform input validation, mark field as invalid if entered value is not valid.
OptionsModel * getOptionsModel() const
void setValue(const SendCoinsRecipient &value)
QToolButton * deleteButton
QLabel * messageTextLabel
void setupUi(QWidget *SendCoinsEntry)
SendCoinsRecipient getValue()
QValidatedLineEdit * payTo
void setModel(AddressTableModel *model)
bool isDust(interfaces::Node &node, const QString &address, const CAmount &amount)
void setAddress(const QString &address)
bool updateLabel(const QString &address)
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.
BitcoinUnit getDisplayUnit() const
void on_payTo_textChanged(const QString &address)
bool validateAddress(const QString &address) const
Open address book to pick address.
A single entry in the dialog for sending bitcoins.
QWidget * setupTabChain(QWidget *prev)
Set up the tab chain manually, as Qt messes up the tab chain by default in some cases (issue https://...
bool getSubFeeFromAmount() const
int64_t CAmount
Amount in satoshis (Can be negative)
bool validate(interfaces::Node &node)
void setupAddressWidget(QValidatedLineEdit *widget, QWidget *parent)
void displayUnitChanged(BitcoinUnit unit)
QString labelForAddress(const QString &address) const
Look up label for address in address book, if not found return empty string.
Widget that shows a list of sending or receiving addresses.
void removeEntry(SendCoinsEntry *entry)
void checkSubtractFeeFromAmount()
bool isClear()
Return whether the entry is still empty and unedited.
QToolButton * pasteButton
void subtractFeeFromAmountChanged()
void on_pasteButton_clicked()
Interface to Bitcoin wallet from Qt view code.
SendCoinsEntry(const PlatformStyle *platformStyle, QWidget *parent=nullptr)
void clear()
Make field empty and ready for new input.
SendCoinsRecipient recipient
void setAmount(const CAmount &amount)
void on_addressBookButton_clicked()
void setModel(WalletModel *model)
void setValid(bool valid)
Mark current value as invalid in UI.
QCheckBox * checkboxSubtractFeeFromAmount
QPushButton * useAvailableBalanceButton
void useAvailableBalance(SendCoinsEntry *entry)
AddressTableModel * getAddressTableModel() const
QToolButton * addressBookButton
bool fSubtractFeeFromAmount
const PlatformStyle * platformStyle
void useAvailableBalanceClicked()
void setDisplayUnit(BitcoinUnit new_unit)
Change unit used to display amount.
Top-level interface for a bitcoin node (bitcoind process).
void setValue(const CAmount &value)
void setText(const QString &)
void setValid(bool valid)
BitcoinAmountField * payAmount
const QString & getReturnValue() const
void changeEvent(QEvent *e) override