MCPcopy Create free account
hub / github.com/ElementsProject/elements / SendCoinsEntry

Method SendCoinsEntry

src/qt/sendcoinsentry.cpp:25–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23#include <chainparams.h>
24
25SendCoinsEntry::SendCoinsEntry(const PlatformStyle *_platformStyle, QWidget *parent) :
26 QStackedWidget(parent),
27 ui(new Ui::SendCoinsEntry),
28 model(nullptr),
29 platformStyle(_platformStyle)
30{
31 ui->setupUi(this);
32
33 ui->addressBookButton->setIcon(platformStyle->SingleColorIcon(":/icons/address-book"));
34 ui->pasteButton->setIcon(platformStyle->SingleColorIcon(":/icons/editpaste"));
35 ui->deleteButton->setIcon(platformStyle->SingleColorIcon(":/icons/remove"));
36 ui->deleteButton_is->setIcon(platformStyle->SingleColorIcon(":/icons/remove"));
37 ui->deleteButton_s->setIcon(platformStyle->SingleColorIcon(":/icons/remove"));
38
39 setCurrentWidget(ui->SendCoins);
40
41 if (platformStyle->getUseExtraSpacing())
42 ui->payToLayout->setSpacing(4);
43
44 // normal bitcoin address field
45 GUIUtil::setupAddressWidget(ui->payTo, this);
46 // just a label for displaying bitcoin address(es)
47 ui->payTo_is->setFont(GUIUtil::fixedPitchFont());
48
49 // Connect signals
50 connect(ui->payAmount, &BitcoinAmountField::valueChanged, this, &SendCoinsEntry::payAmountChanged);
51 connect(ui->checkboxSubtractFeeFromAmount, &QCheckBox::toggled, this, &SendCoinsEntry::subtractFeeFromAmountChanged);
52 connect(ui->payAmount, &BitcoinAmountField::valueChanged, this, &SendCoinsEntry::payAmountChangedInternal);
53 connect(ui->deleteButton, &QPushButton::clicked, this, &SendCoinsEntry::deleteClicked);
54 connect(ui->deleteButton_is, &QPushButton::clicked, this, &SendCoinsEntry::deleteClicked);
55 connect(ui->deleteButton_s, &QPushButton::clicked, this, &SendCoinsEntry::deleteClicked);
56 connect(ui->useAvailableBalanceButton, &QPushButton::clicked, this, &SendCoinsEntry::useAvailableBalanceClicked);
57}
58
59SendCoinsEntry::~SendCoinsEntry()
60{

Callers

nothing calls this directly

Calls 4

setupAddressWidgetFunction · 0.85
fixedPitchFontFunction · 0.85
SingleColorIconMethod · 0.80
getUseExtraSpacingMethod · 0.80

Tested by

no test coverage detected