// SPDX-License-Identifier: BSD-3-Clause // Copyright (c) 2020, The Monero Project. #include "ui_seeddialog.h" #include "seeddialog.h" SeedDialog::SeedDialog(const QString &seed, QWidget *parent) : QDialog(parent) , ui(new Ui::SeedDialog) { ui->setupUi(this); ui->label_seedIcon->setPixmap(QPixmap(":/assets/images/seed.png").scaledToWidth(64, Qt::SmoothTransformation)); ui->seed->setPlainText(seed); int words = seed.split(" ").size(); ui->label_warning->setText(QString("

Please save these %1 words on paper (order is important). " "This seed will allow you to recover your wallet in case " "of computer failure." "

" "WARNING:" "").arg(words)); this->adjustSize(); } SeedDialog::~SeedDialog() { delete ui; }