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

Merge pull request #4382

Jerome Pinguet (1):
      fix(profile): set maxLength on userName QLineEdit
This commit is contained in:
sudden6 2017-05-10 09:24:05 +02:00
commit e4d4f14793
No known key found for this signature in database
GPG Key ID: 279509B499E032B9

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);