Inside Bitcoin
Opening the selected file…
Inside Bitcoin
Opening the selected file…
The code behind the network, with room to understand it.
Release published 2026-10-28 · Snapshot fetched 2026-11-01. Latest stable release at fetch time; development branches and Git history are excluded. Only the selected code window and visible folders load here.
1// Copyright (c) 2011-present The Bitcoin Core developers2// Distributed under the MIT software license, see the accompanying3// file COPYING or http://www.opensource.org/licenses/mit-license.php.5#ifndef BITCOIN_QT_SENDCOINSENTRY_H6#define BITCOIN_QT_SENDCOINSENTRY_H8#include <qt/sendcoinsrecipient.h>10#include <QWidget>12class WalletModel;13class PlatformStyle;15namespace interfaces {16class Node;17} // namespace interfaces19namespace Ui {20class SendCoinsEntry;21}23/**24* A single entry in the dialog for sending bitcoins.25*/26class SendCoinsEntry : public QWidget27{28Q_OBJECT30public:31explicit SendCoinsEntry(const PlatformStyle *platformStyle, QWidget *parent = nullptr);32~SendCoinsEntry();34void setModel(WalletModel *model);35bool validate(interfaces::Node& node);36SendCoinsRecipient getValue();38/** Return whether the entry is still empty and unedited */39bool isClear();41void setValue(const SendCoinsRecipient &value);42void setAddress(const QString &address);43void setAmount(const CAmount &amount);45/** Set up the tab chain manually, as Qt messes up the tab chain by default in some cases46* (issue https://bugreports.qt-project.org/browse/QTBUG-10907).47*/48QWidget *setupTabChain(QWidget *prev);50void setFocus();52public Q_SLOTS:53void clear();54void checkSubtractFeeFromAmount();56Q_SIGNALS:57void removeEntry(SendCoinsEntry *entry);58void useAvailableBalance(SendCoinsEntry* entry);59void payAmountChanged();60void subtractFeeFromAmountChanged();62private Q_SLOTS:63void deleteClicked();64void useAvailableBalanceClicked();65void on_payTo_textChanged(const QString &address);66void on_addressBookButton_clicked();67void on_pasteButton_clicked();68void updateDisplayUnit();70protected:71void changeEvent(QEvent* e) override;73private:74SendCoinsRecipient recipient;75Ui::SendCoinsEntry *ui;76WalletModel* model{nullptr};77const PlatformStyle *platformStyle;79bool updateLabel(const QString &address);80};82#endif // BITCOIN_QT_SENDCOINSENTRY_H
Independent explanations by MyBitcoinExplorer. Not affiliated with or endorsed by Bitcoin Core. Guides are educational and do not replace the source or its tests.
Bitcoin Core source © its contributors, distributed under the MIT license. Original notices and bundled third-party licenses are retained in the source tree.