Skip to content

Commit

Permalink
Use mono font for mnemonic text area and set it to readonly.
Browse files Browse the repository at this point in the history
Signed-off-by: allexzander <blackslayer4@gmail.com>
  • Loading branch information
allexzander committed Oct 19, 2022
1 parent bd15006 commit 38e722a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/gui/accountmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,11 @@ void AccountManager::displayMnemonic(const QString& mnemonic)
ui.label->setText(tr("To protect your Cryptographic Identity, we encrypt it with a mnemonic of 12 dictionary words. "
"Please note these down and keep them safe. "
"They will be needed to add other devices to your account (like your mobile phone or laptop)."));
QFont monoFont(QStringLiteral("Monospace"));
monoFont.setStyleHint(QFont::TypeWriter);
ui.textEdit->setFont(monoFont);
ui.textEdit->setText(mnemonic);
ui.textEdit->setReadOnly(true);
ui.textEdit->focusWidget();
ui.textEdit->selectAll();
ui.textEdit->setAlignment(Qt::AlignCenter);
Expand Down

0 comments on commit 38e722a

Please sign in to comment.