mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-25 20:48:52 +03:00
Clean up placeholder string
use QString instead of std::string (QStringLiteral doesn't have a constructor with int, str.) remove temp variable, and just deal with it inline.
This commit is contained in:
parent
21b207d1f0
commit
53138d7f5c
1 changed files with 1 additions and 2 deletions
|
@ -258,8 +258,7 @@ UserSettingsPage::UserSettingsPage(QSharedPointer<UserSettings> settings, QWidge
|
|||
deviceFingerprintValue_->setTextInteractionFlags(Qt::TextSelectableByMouse);
|
||||
deviceFingerprintValue_->setFont(monospaceFont);
|
||||
|
||||
std::string fingerprintPlaceHolder_(44, 'x');
|
||||
deviceFingerprintValue_->setText(utils::humanReadableFingerprint(fingerprintPlaceHolder_));
|
||||
deviceFingerprintValue_->setText(utils::humanReadableFingerprint(QString(44, 'X')));
|
||||
|
||||
auto sessionKeysLabel = new QLabel{tr("Session Keys"), this};
|
||||
sessionKeysLabel->setFont(font);
|
||||
|
|
Loading…
Reference in a new issue