1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

fix(profile): set maxLength on userName QLineEdit

Set maxLength of userName QLineEdit to TOX_MAX_NAME_LENGTH
Fixes #4335
This commit is contained in:
Jerome Pinguet 2017-05-09 07:28:31 +02:00
parent a913f150e1
commit 71a838b53e
No known key found for this signature in database
GPG Key ID: B55D28F32B8735F4

View File

@ -56,6 +56,10 @@ ProfileForm::ProfileForm(QWidget* parent)
bodyUI->setupUi(this);
core = Core::getInstance();
bodyUI->userNameLabel->setToolTip(tr("Tox user names cannot exceed %1 characters.")
.arg(TOX_MAX_NAME_LENGTH));
bodyUI->userName->setMaxLength(TOX_MAX_NAME_LENGTH);
// tox
toxId = new ClickableTE();
toxId->setReadOnly(true);