mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-26 04:58:49 +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_->setTextInteractionFlags(Qt::TextSelectableByMouse);
|
||||||
deviceFingerprintValue_->setFont(monospaceFont);
|
deviceFingerprintValue_->setFont(monospaceFont);
|
||||||
|
|
||||||
std::string fingerprintPlaceHolder_(44, 'x');
|
deviceFingerprintValue_->setText(utils::humanReadableFingerprint(QString(44, 'X')));
|
||||||
deviceFingerprintValue_->setText(utils::humanReadableFingerprint(fingerprintPlaceHolder_));
|
|
||||||
|
|
||||||
auto sessionKeysLabel = new QLabel{tr("Session Keys"), this};
|
auto sessionKeysLabel = new QLabel{tr("Session Keys"), this};
|
||||||
sessionKeysLabel->setFont(font);
|
sessionKeysLabel->setFont(font);
|
||||||
|
|
Loading…
Reference in a new issue