Skip to content

Commit

Permalink
Fix deprecated method usage.
Browse files Browse the repository at this point in the history
Signed-off-by: alex-z <blackslayer4@gmail.com>
  • Loading branch information
allexzander committed Oct 28, 2022
1 parent fbe05e2 commit 7ad4c72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/accountsettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -976,7 +976,7 @@ void AccountSettings::displayMnemonic(const QString &mnemonic)

const QFont font(QStringLiteral(""), 0);
QFontMetrics fm(font);
ui.lineEdit->setFixedWidth(fm.width(mnemonic));
ui.lineEdit->setFixedWidth(fm.horizontalAdvance(mnemonic));
widget.resize(widget.sizeHint());
widget.exec();
}
Expand Down

0 comments on commit 7ad4c72

Please sign in to comment.