| 23 | #include <chainparams.h> |
| 24 | |
| 25 | SendCoinsEntry::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 | |
| 59 | SendCoinsEntry::~SendCoinsEntry() |
| 60 | { |
nothing calls this directly
no test coverage detected