Browse Source

fix(profile): set maxLength on userName QLineEdit

Set maxLength of userName QLineEdit to TOX_MAX_NAME_LENGTH
Fixes #4335

(cherry picked from commit 71a838b53e)
reviewable/pr4400/r1
Jerome Pinguet 9 years ago committed by sudden6
parent
commit
e4246aecfb
No known key found for this signature in database
GPG Key ID: 279509B499E032B9
  1. 4
      src/widget/form/profileform.cpp

4
src/widget/form/profileform.cpp

@ -56,6 +56,10 @@ ProfileForm::ProfileForm(QWidget* parent) @@ -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);

Loading…
Cancel
Save