2 #include "ui_importorcreate.h"
10 #include <QMessageBox>
13 QDialog(parent, Qt::WindowSystemMenuHint | Qt::WindowTitleHint | Qt::WindowCloseButtonHint),
17 connect(
ui->btnNext, SIGNAL(clicked()),
this, SLOT(
on_next()));
27 if (
ui->rbCreate->isChecked()) {
35 if (!hdChainCurrent.
GetMnemonic(mnemonic, mnemonicPass))
38 QString mPhrase = std::string(mnemonic.begin(), mnemonic.end()).c_str();
40 QPushButton *copyButton = msgBox.addButton(tr(
"Copy"), QMessageBox::ActionRole);
41 QPushButton *okButton = msgBox.addButton(tr(
"OK"), QMessageBox::ActionRole);
42 copyButton->setStyleSheet(
"background:transparent;");
43 copyButton->setIcon(QIcon(
":/icons/editcopy"));
44 msgBox.setWindowTitle(
"Mnemonic Recovery Phrase");
45 msgBox.setText(
"Below is your Mnemonic Recovery Phrase, consisting of 24 seed words. Please copy/write these words down in order. We strongly recommend keeping multiple copies in different locations.");
46 msgBox.setInformativeText(
"\n<b>" + mPhrase +
"</b>");
50 if (msgBox.clickedButton() == copyButton) {