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_RECEIVECOINSDIALOG_H6#define BITCOIN_QT_RECEIVECOINSDIALOG_H8#include <qt/guiutil.h>10#include <QDialog>11#include <QHeaderView>12#include <QItemSelection>13#include <QKeyEvent>14#include <QMenu>15#include <QPoint>16#include <QVariant>18class PlatformStyle;19class WalletModel;21namespace Ui {22class ReceiveCoinsDialog;23}25QT_BEGIN_NAMESPACE26class QModelIndex;27QT_END_NAMESPACE29/** Dialog for requesting payment of bitcoins */30class ReceiveCoinsDialog : public QDialog31{32Q_OBJECT34public:35enum ColumnWidths {36DATE_COLUMN_WIDTH = 130,37LABEL_COLUMN_WIDTH = 120,38AMOUNT_MINIMUM_COLUMN_WIDTH = 180,39MINIMUM_COLUMN_WIDTH = 13040};42explicit ReceiveCoinsDialog(const PlatformStyle *platformStyle, QWidget *parent = nullptr);43~ReceiveCoinsDialog();45void setModel(WalletModel *model);47public Q_SLOTS:48void clear();49void reject() override;50void accept() override;52private:53Ui::ReceiveCoinsDialog *ui;54WalletModel* model{nullptr};55QMenu *contextMenu;56QAction* copyLabelAction;57QAction* copyMessageAction;58QAction* copyAmountAction;59const PlatformStyle *platformStyle;61QModelIndex selectedRow();62void copyColumnToClipboard(int column);64private Q_SLOTS:65void on_receiveButton_clicked();66void on_showRequestButton_clicked();67void on_removeRequestButton_clicked();68void on_recentRequestsView_doubleClicked(const QModelIndex &index);69void recentRequestsView_selectionChanged(const QItemSelection &selected, const QItemSelection &deselected);70void updateDisplayUnit();71void showMenu(const QPoint &point);72void copyURI();73void copyAddress();74void copyLabel();75void copyMessage();76void copyAmount();77};79#endif // BITCOIN_QT_RECEIVECOINSDIALOG_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.