diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2022-05-30 18:58:25 +0200 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2022-06-12 13:40:46 +0200 |
commit | f3c76033295b8007c61eab7fcb23cf119d72b8b8 (patch) | |
tree | 7e2070891be1d45565db6e08cca6b915645b2955 /src/qt/sendcoinsentry.cpp | |
parent | 6420fb2005db1490d77c6df45d0b97d7389ff609 (diff) |
qt, refactor: Convert `SendCoinsEntry` to a sub-`QWidget`
It is no longer needed to derive the `SendCoinsEntry` class from the
`QStackedWidget` one.
Diffstat (limited to 'src/qt/sendcoinsentry.cpp')
-rw-r--r-- | src/qt/sendcoinsentry.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/qt/sendcoinsentry.cpp b/src/qt/sendcoinsentry.cpp index ba9af382a3..af514d5a43 100644 --- a/src/qt/sendcoinsentry.cpp +++ b/src/qt/sendcoinsentry.cpp @@ -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) |