| 16 | #include <QClipboard> |
| 17 | |
| 18 | SendCoinsEntry::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 | |
| 41 | SendCoinsEntry::~SendCoinsEntry() |
| 42 | { |
nothing calls this directly
no test coverage detected