MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / SendCoinsEntry

Method SendCoinsEntry

src/qt/sendcoinsentry.cpp:18–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16#include <QClipboard>
17
18SendCoinsEntry::SendCoinsEntry(const PlatformStyle *_platformStyle, QWidget *parent) :
19 QWidget(parent),
20 ui(new Ui::SendCoinsEntry),
21 platformStyle(_platformStyle)
22{
23 ui->setupUi(this);
24
25 ui->addressBookButton->setIcon(platformStyle->SingleColorIcon(":/icons/address-book"));
26 ui->pasteButton->setIcon(platformStyle->SingleColorIcon(":/icons/editpaste"));
27 ui->deleteButton->setIcon(platformStyle->SingleColorIcon(":/icons/remove"));
28
29 if (platformStyle->getUseExtraSpacing())
30 ui->payToLayout->setSpacing(4);
31
32 GUIUtil::setupAddressWidget(ui->payTo, this);
33
34 // Connect signals
35 connect(ui->payAmount, &BitcoinAmountField::valueChanged, this, &SendCoinsEntry::payAmountChanged);
36 connect(ui->checkboxSubtractFeeFromAmount, &QCheckBox::toggled, this, &SendCoinsEntry::subtractFeeFromAmountChanged);
37 connect(ui->deleteButton, &QPushButton::clicked, this, &SendCoinsEntry::deleteClicked);
38 connect(ui->useAvailableBalanceButton, &QPushButton::clicked, this, &SendCoinsEntry::useAvailableBalanceClicked);
39}
40
41SendCoinsEntry::~SendCoinsEntry()
42{

Callers

nothing calls this directly

Calls 3

setupAddressWidgetFunction · 0.85
SingleColorIconMethod · 0.80
getUseExtraSpacingMethod · 0.80

Tested by

no test coverage detected