qt, refactor: Convert SendCoinsEntry to a sub-QWidget

It is no longer needed to derive the `SendCoinsEntry` class from the
`QStackedWidget` one.
This commit is contained in:
Hennadii Stepanov
2022-05-30 18:58:25 +02:00
parent 6420fb2005
commit f3c7603329
3 changed files with 5 additions and 14 deletions

View File

@@ -20,7 +20,7 @@
#include <QClipboard>
SendCoinsEntry::SendCoinsEntry(const PlatformStyle *_platformStyle, QWidget *parent) :
QStackedWidget(parent),
QWidget(parent),
ui(new Ui::SendCoinsEntry),
model(nullptr),
platformStyle(_platformStyle)
@@ -31,8 +31,6 @@ SendCoinsEntry::SendCoinsEntry(const PlatformStyle *_platformStyle, QWidget *par
ui->pasteButton->setIcon(platformStyle->SingleColorIcon(":/icons/editpaste"));
ui->deleteButton->setIcon(platformStyle->SingleColorIcon(":/icons/remove"));
setCurrentWidget(ui->SendCoins);
if (platformStyle->getUseExtraSpacing())
ui->payToLayout->setSpacing(4);
@@ -227,7 +225,7 @@ void SendCoinsEntry::changeEvent(QEvent* e)
ui->deleteButton->setIcon(platformStyle->SingleColorIcon(QStringLiteral(":/icons/remove")));
}
QStackedWidget::changeEvent(e);
QWidget::changeEvent(e);
}
bool SendCoinsEntry::updateLabel(const QString &address)